aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-socket-connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/assuan-socket-connect.c')
-rw-r--r--src/assuan-socket-connect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/assuan-socket-connect.c b/src/assuan-socket-connect.c
index a3694c0..b54d5e4 100644
--- a/src/assuan-socket-connect.c
+++ b/src/assuan-socket-connect.c
@@ -51,6 +51,9 @@
#ifndef AF_LOCAL
# define AF_LOCAL AF_UNIX
#endif
+#ifndef INADDR_NONE
+#define INADDR_NONE ((unsigned long)(-1))
+#endif /*INADDR_NONE*/
#ifndef SUN_LEN
# define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) \