* tests/test-accept.c: Omit the signature check on Solaris.
* tests/test-gethostname.c: Likewise.
* tests/test-getpeername.c: Likewise.
* tests/test-getsockname.c: Likewise.
* tests/test-getsockopt.c: Likewise.
* tests/test-recvfrom.c: Likewise.
* doc/posix-functions/accept.texi: Mention the Solaris 11 OmniOS
problem.
* doc/posix-functions/gethostname.texi: Likewise.
* doc/posix-functions/getpeername.texi: Likewise.
* doc/posix-functions/getsockname.texi: Likewise.
* doc/posix-functions/getsockopt.texi: Likewise.
* doc/posix-functions/recvfrom.texi: Likewise.
+2025-01-24 Bruno Haible <bruno@clisp.org>
+
+ tests: Fix a few compilation errors on Solaris 11 OmniOS with gcc 14.
+ * tests/test-accept.c: Omit the signature check on Solaris.
+ * tests/test-gethostname.c: Likewise.
+ * tests/test-getpeername.c: Likewise.
+ * tests/test-getsockname.c: Likewise.
+ * tests/test-getsockopt.c: Likewise.
+ * tests/test-recvfrom.c: Likewise.
+ * doc/posix-functions/accept.texi: Mention the Solaris 11 OmniOS
+ problem.
+ * doc/posix-functions/gethostname.texi: Likewise.
+ * doc/posix-functions/getpeername.texi: Likewise.
+ * doc/posix-functions/getsockname.texi: Likewise.
+ * doc/posix-functions/getsockopt.texi: Likewise.
+ * doc/posix-functions/recvfrom.texi: Likewise.
+
2025-01-23 Collin Funk <collin.funk1@gmail.com>
uchar-h-c23: Fix compilation error on OmniOS.
@item
On some platforms, this function's third argument type is @samp{void *},
not @samp{socklen_t *}:
-Solaris 10.
+Solaris 10, Solaris 11 OmniOS.
@end itemize
@item
This function's second argument type is @code{int} instead of @code{size_t}
on some platforms:
-Solaris 10.
+Solaris 10, Solaris 11 OmniOS.
@item
If the given buffer is too small for the host name, some implementations
fail with @code{EINVAL}, instead of returning a truncated host name.
@item
Some platforms don't have a @code{socklen_t} type; in this case this function's
third argument type is @samp{int *}.
+@item
+On some platforms, this function's third argument type is @samp{void *},
+not @samp{socklen_t *}:
+Solaris 11 OmniOS.
@end itemize
@item
Some platforms don't have a @code{socklen_t} type; in this case this function's
third argument type is @samp{int *}.
+@item
+On some platforms, this function's third argument type is @samp{void *},
+not @samp{socklen_t *}:
+Solaris 11 OmniOS.
@end itemize
Some platforms don't have a @code{socklen_t} type; in this case this function's
fifth argument type is @samp{int *}.
@item
+On some platforms, this function's fifth argument type is @samp{void *},
+not @samp{socklen_t *}:
+Solaris 11 OmniOS.
+@item
Many socket options are not available on all platforms.
@end itemize
@item
Some platforms don't have a @code{socklen_t} type; in this case this function's
sixth argument type is @samp{int *}.
+@item
+On some platforms, this function's sixth argument type is @samp{void *},
+not @samp{socklen_t *}:
+Solaris 11 OmniOS.
@end itemize
#include <sys/socket.h>
#include "signature.h"
+#if !defined __sun
SIGNATURE_CHECK (accept, int, (int, struct sockaddr *, socklen_t *));
+#endif
#include <errno.h>
#include <netinet/in.h>
#include <unistd.h>
#include "signature.h"
+#if !defined __sun
SIGNATURE_CHECK (gethostname, int, (char *, size_t));
+#endif
/* Get HOST_NAME_MAX definition. */
#include <limits.h>
#include <sys/socket.h>
#include "signature.h"
+#if !defined __sun
SIGNATURE_CHECK (getpeername, int, (int, struct sockaddr *, socklen_t *));
+#endif
#include <errno.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include "signature.h"
+#if !defined __sun
SIGNATURE_CHECK (getsockname, int, (int, struct sockaddr *, socklen_t *));
+#endif
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include "signature.h"
+#if !defined __sun
SIGNATURE_CHECK (getsockopt, int, (int, int, int, void *, socklen_t *));
+#endif
#include <errno.h>
#include <unistd.h>
#include <sys/socket.h>
#include "signature.h"
+#if !defined __sun
SIGNATURE_CHECK (recvfrom, ssize_t,
- (int, void *, size_t, int,
- struct sockaddr *, socklen_t *));
+ (int, void *, size_t, int, struct sockaddr *, socklen_t *));
+#endif
#include <errno.h>
#include <netinet/in.h>