public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1355] ada: Define sigset for systems that does not suport sockets
@ 2023-05-29  8:31 Marc Poulhi?s
  0 siblings, 0 replies; only message in thread
From: Marc Poulhi?s @ 2023-05-29  8:31 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:6c2b2de098af7d3bf42126301438b70ad1279bcd

commit r14-1355-g6c2b2de098af7d3bf42126301438b70ad1279bcd
Author: Cedric Landet <landet@adacore.com>
Date:   Fri Mar 31 14:24:46 2023 +0200

    ada: Define sigset for systems that does not suport sockets
    
    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.

Diff:
---
 gcc/ada/s-oscons-tmplt.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c
index 5480e55a5bb..28d42c5a459 100644
--- a/gcc/ada/s-oscons-tmplt.c
+++ b/gcc/ada/s-oscons-tmplt.c
@@ -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
+
 /*
 
    ---------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-29  8:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-29  8:31 [gcc r14-1355] ada: Define sigset for systems that does not suport sockets Marc Poulhi?s

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).