diff options
author | Julien Danjou <julien@danjou.info> | 2008-08-28 13:51:38 +0200 |
---|---|---|
committer | Julien Danjou <julien@danjou.info> | 2008-08-28 13:51:38 +0200 |
commit | baf31b1bf20b49ec00d0f64bb7cc9c788a28c088 (patch) | |
tree | 4315e9a95c68ae860f0cc8b88088ef5ee46b355d /src | |
parent | 38d5de3a5573b2e89e97d04a809a3dd38a0fe8a7 (diff) |
Use ifdef instead of if for defined value
Signed-off-by: Julien Danjou <julien@danjou.info>
Diffstat (limited to 'src')
-rw-r--r-- | src/xcb_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |