]> gcc.gnu.org Git - gcc.git/commitdiff
ada: Define sigset for systems that does not suport sockets
authorCedric Landet <landet@adacore.com>
Fri, 31 Mar 2023 12:24:46 +0000 (14:24 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 29 May 2023 08:23:23 +0000 (10:23 +0200)
In s-oscons-tmplt.c, sigset is defined inside the HAVE_SOCKETS bloc.
A platform could require sigset without supporting sockets.

gcc/ada/

* s-oscons-tmplt.c: move the definition of sigset out of the
HAVE_SOCKETS bloc.

gcc/ada/s-oscons-tmplt.c

index 5480e55a5bbdd44249d581fcba7bd93e5234c254..28d42c5a4595e7ea9cfbfebfe46d34ecf92da2ad 100644 (file)
@@ -1796,11 +1796,6 @@ CND(SIZEOF_struct_hostent, "struct hostent")
 #define SIZEOF_struct_servent (sizeof (struct servent))
 CND(SIZEOF_struct_servent, "struct servent")
 
-#if defined (__linux__) || defined (__ANDROID__) || defined (__QNX__)
-#define SIZEOF_sigset (sizeof (sigset_t))
-CND(SIZEOF_sigset, "sigset")
-#endif
-
 #if defined(_WIN32) || defined(__vxworks)
 #define SIZEOF_nfds_t sizeof (int) * 8
 #define SIZEOF_socklen_t sizeof (size_t)
@@ -1938,6 +1933,11 @@ CST(Poll_Linkname, "")
 
 #endif /* HAVE_SOCKETS */
 
+#if defined (__linux__) || defined (__ANDROID__) || defined (__QNX__)
+#define SIZEOF_sigset (sizeof (sigset_t))
+CND(SIZEOF_sigset, "sigset")
+#endif
+
 /*
 
    ---------------------
This page took 0.069837 seconds and 5 git commands to generate.