aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-05-07 21:35:40 -0400
committerJesse Luehrs <doy@tozt.net>2016-05-07 21:35:40 -0400
commit2b548c327c3477d09de14943908b98e14814b5b1 (patch)
treed9ec8a95a0ec0b5a8bd0562c06d313bca6d30a06
parent880762a9b7c24809cfcc20db54fc11eafe161dec (diff)
downloadrunes-2b548c327c3477d09de14943908b98e14814b5b1.tar.gz
runes-2b548c327c3477d09de14943908b98e14814b5b1.zip
runesc shouldn't depend on anything
-rw-r--r--src/runesc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runesc.c b/src/runesc.c
index 6abfac8..81f6c36 100644
--- a/src/runesc.c
+++ b/src/runesc.c
@@ -9,7 +9,8 @@
#include "runes.h"
-#include "socket.h"
+#define MAX_SOCKET_PATH_LEN \
+ (sizeof(struct sockaddr_un) - offsetof(struct sockaddr_un, sun_path))
static int runes_socket_open_client(char *name);