From 3609e019f352912e882b91b7a856c7b30569f2de Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 29 Sep 2012 17:44:33 -0400 Subject: [PATCH] always expose accept4 it will be in the next version of POSIX --- include/sys/socket.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/sys/socket.h b/include/sys/socket.h index 4afec4ef..b1386538 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -235,6 +235,7 @@ int bind (int, const struct sockaddr *, socklen_t); int connect (int, const struct sockaddr *, socklen_t); int listen (int, int); int accept (int, struct sockaddr *__restrict, socklen_t *__restrict); +int accept4(int, struct sockaddr *__restrict, socklen_t *__restrict, int); int getsockname (int, struct sockaddr *__restrict, socklen_t *__restrict); int getpeername (int, struct sockaddr *__restrict, socklen_t *__restrict); @@ -255,10 +256,6 @@ int sockatmark (int); #define SHUT_WR 1 #define SHUT_RDWR 2 -#ifdef _GNU_SOURCE -int accept4(int, struct sockaddr *__restrict, socklen_t *__restrict, int); -#endif - #ifdef __cplusplus } #endif -- 2.25.1