X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fsys%2Fsocket.h;fp=include%2Fsys%2Fsocket.h;h=b13865380a775cb8b1feaad8ef690bbd2d69922f;hp=4afec4efb3e44417d631835f05bc2baa20a9a15e;hb=3609e019f352912e882b91b7a856c7b30569f2de;hpb=9735d50070cc120f4749d1a458eacad7e9180a28 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