[Xcb-commit] src

Julien Danjou jdanjou at kemper.freedesktop.org
Thu Aug 28 04:52:13 PDT 2008


 src/xcb_util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit baf31b1bf20b49ec00d0f64bb7cc9c788a28c088
Author: Julien Danjou <julien at danjou.info>
Date:   Thu Aug 28 13:51:38 2008 +0200

    Use ifdef instead of if for defined value
    
    Signed-off-by: Julien Danjou <julien at danjou.info>

diff --git a/src/xcb_util.c b/src/xcb_util.c
index 8c18d71..c772908 100644
--- a/src/xcb_util.c
+++ b/src/xcb_util.c
@@ -253,7 +253,7 @@ static int _xcb_open_unix(char *protocol, const char *file)
 
     strcpy(addr.sun_path, file);
     addr.sun_family = AF_UNIX;
-#if HAVE_SOCKADDR_SUN_LEN
+#ifdef HAVE_SOCKADDR_SUN_LEN
     addr.sun_len = SUN_LEN(&addr);
 #endif
     fd = socket(AF_UNIX, SOCK_STREAM, 0);


More information about the xcb-commit mailing list