]> Savannah Git Hosting - gnulib.git/commitdiff
sys_socket-h tests: Avoid compilation error on Solaris 11.4.
authorBruno Haible <bruno@clisp.org>
Fri, 24 Jan 2025 17:34:04 +0000 (18:34 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 24 Jan 2025 17:34:04 +0000 (18:34 +0100)
* doc/posix-headers/sys_socket.texi: Update.
* tests/test-sys_socket-h.c (main): Don't assume that all platforms that
have SOCK_CLOFORK also have MSG_CMSG_CLOFORK.

ChangeLog
doc/posix-headers/sys_socket.texi
tests/test-sys_socket-h.c

index cf382941c4641a36eccaf4b5695e35131f40e634..3daf00751d5cdc041491fcaa5cf3c307a8f598e9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-01-24  Bruno Haible  <bruno@clisp.org>
+
+       sys_socket-h tests: Avoid compilation error on Solaris 11.4.
+       * doc/posix-headers/sys_socket.texi: Update.
+       * tests/test-sys_socket-h.c (main): Don't assume that all platforms that
+       have SOCK_CLOFORK also have MSG_CMSG_CLOFORK.
+
 2025-01-23  Collin Funk  <collin.funk1@gmail.com>
 
        uchar-h-c23: Fix compilation error on OmniOS.
index 944f752183eb5f990510863000bf457471bb4074..f4f68b22f9302f440bbeca5077941220e8792076 100644 (file)
@@ -81,7 +81,11 @@ This header file does not define the type @code{struct cmsghdr} and
 the constant @code{SCM_RIGHTS} on some platforms:
 mingw, MSVC 14.
 @item
-This header file does not define the constants @code{SOCK_CLOFORK} and
-@code{MSG_CMSG_CLOFORK} on some platforms:
+This header file does not define the constant @code{SOCK_CLOFORK}
+on some platforms:
 glibc 2.39, musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Solaris 11.3, Cygwin, mingw, MSVC, Android.
+@item
+This header file does not define the constant @code{MSG_CMSG_CLOFORK}
+on some platforms:
+glibc 2.39, musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Solaris 11.4, Cygwin, mingw, MSVC, Android.
 @end itemize
index 5644f141a86d9fd2ecba9a8662bb880c6efe54e7..fffd44ecad3c2ef4d15f331c1c782b566de40558 100644 (file)
@@ -165,7 +165,7 @@ main (void)
 #ifdef MSG_CMSG_CLOEXEC
     case MSG_CMSG_CLOEXEC:
 #endif
-#ifdef SOCK_CLOFORK
+#ifdef MSG_CMSG_CLOFORK
     case MSG_CMSG_CLOFORK:
 #endif
     case MSG_DONTROUTE: