From 51fb7000aa3e53f663e66519074b7bb0767f09f7 Mon Sep 17 00:00:00 2001 From: Doug Rupp Date: Thu, 10 Sep 2020 11:00:32 -0700 Subject: [PATCH] [Ada] x86-lynx178elf - gcc build fails gcc/ada/ * s-oscons-tmplt.c (_nfds_t): Use sizeof (unsigned long int). --- gcc/ada/s-oscons-tmplt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c index e3e5bc2f03d..bce5437c6dc 100644 --- a/gcc/ada/s-oscons-tmplt.c +++ b/gcc/ada/s-oscons-tmplt.c @@ -1739,6 +1739,9 @@ CND(SIZEOF_sigset, "sigset") #if defined(_WIN32) || defined(__vxworks) #define SIZEOF_nfds_t sizeof (int) * 8 #define SIZEOF_socklen_t sizeof (size_t) +#elif defined(__Lynx__) +#define SIZEOF_nfds_t sizeof (unsigned long int) * 8 +#define SIZEOF_socklen_t sizeof (socklen_t) #else #define SIZEOF_nfds_t sizeof (nfds_t) * 8 #define SIZEOF_socklen_t sizeof (socklen_t) -- 2.30.2