summaryrefslogtreecommitdiffstats
path: root/gl/sys_socket.in.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 15:27:12 (GMT)
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 15:27:12 (GMT)
commit5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (patch)
tree2b2e1c71dffae827c8e45cd4cccc375093d03486 /gl/sys_socket.in.h
parent6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff)
downloadmonitoring-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.h15
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