Browse Source

undef MODEMASK from Solaris 10

OPENBSD_5_8
Brent Cook 9 years ago
parent
commit
f100b7bdd1
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      include/sys/socket.h

+ 8
- 0
include/sys/socket.h View File

@ -11,4 +11,12 @@
((struct sockaddr*)(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : \
((struct sockaddr*)(X))->sa_family == AF_UNSPEC ? sizeof(struct sockaddr) : \
sizeof(struct sockaddr))
/*
* Prevent Solaris 10 system header leakage
*/
#ifdef MODEMASK
#undef MODEMASK
#endif
#endif

Loading…
Cancel
Save