diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:27:12 (GMT) |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:27:12 (GMT) |
commit | 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (patch) | |
tree | 2b2e1c71dffae827c8e45cd4cccc375093d03486 /gl/sys_socket.in.h | |
parent | 6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff) | |
download | monitoring-plugins-5be04ec2ceb1df77afbca4fcbf9e92a712612d6f.tar.gz |
Sync with the latest Gnulib code (d4ec02b3cc)refs/pull/2037/head
Diffstat (limited to 'gl/sys_socket.in.h')
-rw-r--r-- | gl/sys_socket.in.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/gl/sys_socket.in.h b/gl/sys_socket.in.h index 6705593..13833c0 100644 --- a/gl/sys_socket.in.h +++ b/gl/sys_socket.in.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* Provide a sys/socket header file for systems lacking it (read: MinGW) | 1 | /* Provide a sys/socket header file for systems lacking it (read: MinGW) |
2 | and for systems where it is incomplete. | 2 | and for systems where it is incomplete. |
3 | Copyright (C) 2005-2023 Free Software Foundation, Inc. | 3 | Copyright (C) 2005-2024 Free Software Foundation, Inc. |
4 | Written by Simon Josefsson. | 4 | Written by Simon Josefsson. |
5 | 5 | ||
6 | This file is free software: you can redistribute it and/or modify | 6 | This file is free software: you can redistribute it and/or modify |
@@ -63,9 +63,12 @@ | |||
63 | #ifndef _@GUARD_PREFIX@_SYS_SOCKET_H | 63 | #ifndef _@GUARD_PREFIX@_SYS_SOCKET_H |
64 | #define _@GUARD_PREFIX@_SYS_SOCKET_H | 64 | #define _@GUARD_PREFIX@_SYS_SOCKET_H |
65 | 65 | ||
66 | #ifndef _GL_INLINE_HEADER_BEGIN | 66 | /* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, GNULIB_POSIXCHECK, |
67 | HAVE_RAW_DECL_*, alignof. */ | ||
68 | #if !_GL_CONFIG_H_INCLUDED | ||
67 | #error "Please include config.h first." | 69 | #error "Please include config.h first." |
68 | #endif | 70 | #endif |
71 | |||
69 | _GL_INLINE_HEADER_BEGIN | 72 | _GL_INLINE_HEADER_BEGIN |
70 | #ifndef _GL_SYS_SOCKET_INLINE | 73 | #ifndef _GL_SYS_SOCKET_INLINE |
71 | # define _GL_SYS_SOCKET_INLINE _GL_INLINE | 74 | # define _GL_SYS_SOCKET_INLINE _GL_INLINE |
@@ -355,7 +358,9 @@ _GL_CXXALIAS_SYS_CAST (accept, int, | |||
355 | struct sockaddr *restrict addr, | 358 | struct sockaddr *restrict addr, |
356 | socklen_t *restrict addrlen)); | 359 | socklen_t *restrict addrlen)); |
357 | # endif | 360 | # endif |
361 | # if __GLIBC__ >= 2 | ||
358 | _GL_CXXALIASWARN (accept); | 362 | _GL_CXXALIASWARN (accept); |
363 | # endif | ||
359 | #elif @HAVE_WINSOCK2_H@ | 364 | #elif @HAVE_WINSOCK2_H@ |
360 | # undef accept | 365 | # undef accept |
361 | # define accept accept_used_without_requesting_gnulib_module_accept | 366 | # define accept accept_used_without_requesting_gnulib_module_accept |
@@ -417,7 +422,9 @@ _GL_CXXALIAS_SYS_CAST (getpeername, int, | |||
417 | (int fd, struct sockaddr *restrict addr, | 422 | (int fd, struct sockaddr *restrict addr, |
418 | socklen_t *restrict addrlen)); | 423 | socklen_t *restrict addrlen)); |
419 | # endif | 424 | # endif |
425 | # if __GLIBC__ >= 2 | ||
420 | _GL_CXXALIASWARN (getpeername); | 426 | _GL_CXXALIASWARN (getpeername); |
427 | # endif | ||
421 | #elif @HAVE_WINSOCK2_H@ | 428 | #elif @HAVE_WINSOCK2_H@ |
422 | # undef getpeername | 429 | # undef getpeername |
423 | # define getpeername getpeername_used_without_requesting_gnulib_module_getpeername | 430 | # define getpeername getpeername_used_without_requesting_gnulib_module_getpeername |
@@ -449,7 +456,9 @@ _GL_CXXALIAS_SYS_CAST (getsockname, int, | |||
449 | (int fd, struct sockaddr *restrict addr, | 456 | (int fd, struct sockaddr *restrict addr, |
450 | socklen_t *restrict addrlen)); | 457 | socklen_t *restrict addrlen)); |
451 | # endif | 458 | # endif |
459 | # if __GLIBC__ >= 2 | ||
452 | _GL_CXXALIASWARN (getsockname); | 460 | _GL_CXXALIASWARN (getsockname); |
461 | # endif | ||
453 | #elif @HAVE_WINSOCK2_H@ | 462 | #elif @HAVE_WINSOCK2_H@ |
454 | # undef getsockname | 463 | # undef getsockname |
455 | # define getsockname getsockname_used_without_requesting_gnulib_module_getsockname | 464 | # define getsockname getsockname_used_without_requesting_gnulib_module_getsockname |
@@ -596,7 +605,9 @@ _GL_CXXALIAS_SYS_CAST (recvfrom, ssize_t, | |||
596 | struct sockaddr *restrict from, | 605 | struct sockaddr *restrict from, |
597 | socklen_t *restrict fromlen)); | 606 | socklen_t *restrict fromlen)); |
598 | # endif | 607 | # endif |
608 | # if __GLIBC__ >= 2 | ||
599 | _GL_CXXALIASWARN (recvfrom); | 609 | _GL_CXXALIASWARN (recvfrom); |
610 | # endif | ||
600 | #elif @HAVE_WINSOCK2_H@ | 611 | #elif @HAVE_WINSOCK2_H@ |
601 | # undef recvfrom | 612 | # undef recvfrom |
602 | # define recvfrom recvfrom_used_without_requesting_gnulib_module_recvfrom | 613 | # define recvfrom recvfrom_used_without_requesting_gnulib_module_recvfrom |