diff options
author | rmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d> | 2011-01-05 22:53:05 +0000 |
---|---|---|
committer | rmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d> | 2011-01-05 22:53:05 +0000 |
commit | d5b029172ce4bbbe20916c6df6c4a9b61d415ba8 (patch) | |
tree | e4f8e065d7cf01134ef4dac5c3b1416c2e37ef82 | |
parent | a6477167d06f57ef3928f80692032a42d757bae8 (diff) |
Define AF_LOCAL if not already done.
git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@67 2592e710-e01b-42a5-8df0-11608a6cc53d
-rw-r--r-- | mcon/U/d_sockaddr_un.U | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mcon/U/d_sockaddr_un.U b/mcon/U/d_sockaddr_un.U index 32a252e..69747b2 100644 --- a/mcon/U/d_sockaddr_un.U +++ b/mcon/U/d_sockaddr_un.U @@ -45,6 +45,9 @@ $cat >try.c <<EOC #ifdef I_WINSOCK2 #include <Winsock2.h> #endif +#if !defined(AF_LOCAL) && defined(AF_UNIX) +#define AF_LOCAL AF_UNIX +#endif int main(void) { static struct sockaddr_un addr; |