[Ada] x86-lynx178elf - gcc build fails
authorDoug Rupp <rupp@adacore.com>
Thu, 10 Sep 2020 18:00:32 +0000 (11:00 -0700)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 26 Oct 2020 08:59:03 +0000 (04:59 -0400)
gcc/ada/

* s-oscons-tmplt.c (_nfds_t): Use sizeof (unsigned long int).

gcc/ada/s-oscons-tmplt.c

index e3e5bc2f03d4b1c78dae8d5d5a4f9601c8e67d09..bce5437c6dc11e4fcfffd71cf7c57101d2fca9f1 100644 (file)
@@ -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)