projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add scsi headers scsi.h and sg.h
[musl]
/
include
/
sys
/
socket.h
diff --git
a/include/sys/socket.h
b/include/sys/socket.h
index
b138653
..
f148918
100644
(file)
--- a/
include/sys/socket.h
+++ b/
include/sys/socket.h
@@
-47,8
+47,10
@@
struct linger
#define SOCK_DCCP 6
#define SOCK_PACKET 10
#define SOCK_DCCP 6
#define SOCK_PACKET 10
+#ifndef SOCK_CLOEXEC
#define SOCK_CLOEXEC 02000000
#define SOCK_NONBLOCK 04000
#define SOCK_CLOEXEC 02000000
#define SOCK_NONBLOCK 04000
+#endif
#define PF_UNSPEC 0
#define PF_LOCAL 1
#define PF_UNSPEC 0
#define PF_LOCAL 1
@@
-126,6
+128,7
@@
struct linger
#define AF_ALG PF_ALG
#define AF_MAX PF_MAX
#define AF_ALG PF_ALG
#define AF_MAX PF_MAX
+#ifndef SO_DEBUG
#define SO_DEBUG 1
#define SO_REUSEADDR 2
#define SO_TYPE 3
#define SO_DEBUG 1
#define SO_REUSEADDR 2
#define SO_TYPE 3
@@
-140,13
+143,15
@@
struct linger
#define SO_PRIORITY 12
#define SO_LINGER 13
#define SO_BSDCOMPAT 14
#define SO_PRIORITY 12
#define SO_LINGER 13
#define SO_BSDCOMPAT 14
-#define SO_REUSEPORT 15
+/* #define SO_REUSEPORT 15 */
#define SO_PASSCRED 16
#define SO_PEERCRED 17
#define SO_RCVLOWAT 18
#define SO_SNDLOWAT 19
#define SO_RCVTIMEO 20
#define SO_SNDTIMEO 21
#define SO_PASSCRED 16
#define SO_PEERCRED 17
#define SO_RCVLOWAT 18
#define SO_SNDLOWAT 19
#define SO_RCVTIMEO 20
#define SO_SNDTIMEO 21
+#endif
+
#define SO_SECURITY_AUTHENTICATION 22
#define SO_SECURITY_ENCRYPTION_TRANSPORT 23
#define SO_SECURITY_AUTHENTICATION 22
#define SO_SECURITY_ENCRYPTION_TRANSPORT 23
@@
-163,7
+168,9
@@
struct linger
#define SO_ACCEPTCONN 30
#define SO_ACCEPTCONN 30
+#ifndef SOL_SOCKET
#define SOL_SOCKET 1
#define SOL_SOCKET 1
+#endif
#define SOL_RAW 255
#define SOL_DECNET 261
#define SOL_RAW 255
#define SOL_DECNET 261