aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/assuan-socket-connect.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index db6072a..c84cc33 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-17 Werner Koch <[email protected]>
+
+ * assuan-socket-connect.c (INADDR_NONE): New replacement. Fixes
+ bug#1282.
+
2010-09-01 Werner Koch <[email protected]>
* assuan.h.in (ASSUAN_NO_LOGGING): New.
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) \