diff options
author | Jamey Sharp <jamey@minilop.net> | 2005-12-24 01:27:38 +0000 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2005-12-24 01:27:38 +0000 |
commit | 2133bacd126be34040c5c0c74fc4efed95169a4a (patch) | |
tree | 9b4f7b23a2980bf7f7e25c96bcf377938b9d2457 | |
parent | b8843578602090a7b07bc9e7063fd0fe36ead3a2 (diff) |
Use AF_UNIX instead of PF_UNIX, because they're interchangeable on Linux
(and 4.x BSD?) but on MacOS X the latter is not available. Thanks to
Ian Osgood for testing.
-rw-r--r-- | xcb/ChangeLog | 7 | ||||
-rw-r--r-- | xcb/src/xcb_util.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/xcb/ChangeLog b/xcb/ChangeLog index db531fb..968dbad 100644 --- a/xcb/ChangeLog +++ b/xcb/ChangeLog @@ -1,3 +1,10 @@ +2005-12-20 Jamey Sharp <jamey@minilop.net> + + * src/xcb_util.c: + Use AF_UNIX instead of PF_UNIX, because they're interchangeable + on Linux (and 4.x BSD?) but on MacOS X the latter is not + available. Thanks to Ian Osgood for testing. + 2005-12-12 Jamey Sharp <jamey@minilop.net> * src/xcb_util.c: diff --git a/xcb/src/xcb_util.c b/xcb/src/xcb_util.c index 661a2c3..b25a2d8 100644 --- a/xcb/src/xcb_util.c +++ b/xcb/src/xcb_util.c @@ -137,7 +137,7 @@ int XCBOpenUnix(const char *file) struct sockaddr_un addr = { AF_UNIX }; strcpy(addr.sun_path, file); - fd = socket(PF_UNIX, SOCK_STREAM, 0); + fd = socket(AF_UNIX, SOCK_STREAM, 0); if(fd == -1) return -1; if(connect(fd, (struct sockaddr *) &addr, sizeof(addr)) == -1) |