[Xcb-commit] xcb/src xcb_util.c,1.10,1.11
Jamey Sharp
xcb-commit at lists.freedesktop.org
Fri Dec 23 17:27:40 PST 2005
Update of /cvs/xcb/xcb/src
In directory gabe:/tmp/cvs-serv26900/src
Modified Files:
xcb_util.c
Log Message:
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.
Index: xcb_util.c
===================================================================
RCS file: /cvs/xcb/xcb/src/xcb_util.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- xcb_util.c 12 Dec 2005 23:40:47 -0000 1.10
+++ xcb_util.c 24 Dec 2005 01:27:38 -0000 1.11
@@ -137,7 +137,7 @@
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)
More information about the xcb-commit
mailing list