Fix SOCK_* flag definitions
MIPS and the rest of the world only disagree on the first two SOCK_* constants, so restructure the #ifdef accordingly. As a deliberate side effect, this fixes SOCK_DCCP being missing on non-MIPS platforms. Change-Id: I2267008f1121a7eebe1ed9097afab6e612bce7f0 Signed-off-by: Greg Hackmann <ghackmann@google.com>
This commit is contained in:
parent
cd0ed2f174
commit
d75abb9614
@ -50,19 +50,15 @@ struct timespec;
|
||||
#ifdef __mips__
|
||||
#define SOCK_DGRAM 1
|
||||
#define SOCK_STREAM 2
|
||||
#else
|
||||
#define SOCK_STREAM 1
|
||||
#define SOCK_DGRAM 2
|
||||
#endif
|
||||
#define SOCK_RAW 3
|
||||
#define SOCK_RDM 4
|
||||
#define SOCK_SEQPACKET 5
|
||||
#define SOCK_DCCP 6
|
||||
#define SOCK_PACKET 10
|
||||
#else
|
||||
#define SOCK_STREAM 1
|
||||
#define SOCK_DGRAM 2
|
||||
#define SOCK_RAW 3
|
||||
#define SOCK_RDM 4
|
||||
#define SOCK_SEQPACKET 5
|
||||
#define SOCK_PACKET 10
|
||||
#endif
|
||||
|
||||
#define SOCK_CLOEXEC O_CLOEXEC
|
||||
#define SOCK_NONBLOCK O_NONBLOCK
|
||||
|
Loading…
x
Reference in New Issue
Block a user