musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/sys/socket.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012年08月05日 14:23:40 -0400
committerRich Felker <dalias@aerifal.cx>2012年08月05日 14:23:40 -0400
commit7fee5f96063ffd55ba67a87a795222c30364e25f (patch)
tree5efaf63c8150698a72c50d69696562335353af8f /include/sys/socket.h
parent32e7bd78ae3b290f28ada2b3d58460068ce08781 (diff)
downloadmusl-7fee5f96063ffd55ba67a87a795222c30364e25f.tar.gz
fix socket.h on mips
why does mips have to be gratuitously incompatible in every possible imaginable way?
Diffstat (limited to 'include/sys/socket.h')
-rw-r--r--include/sys/socket.h 3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h
index 88243ae5..a384ca12 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -34,8 +34,11 @@ struct linger
#define SHUT_WD 1
#define SHUT_RDWR 2
+#ifndef SOCK_STREAM
#define SOCK_STREAM 1
#define SOCK_DGRAM 2
+#endif
+
#define SOCK_RAW 3
#define SOCK_RDM 4
#define SOCK_SEQPACKET 5
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月04日 04:04:24 +0000

AltStyle によって変換されたページ (->オリジナル) /