[svn] assuan - r388 - in trunk: . src

svn author wk cvs at cvs.gnupg.org
Fri Sep 17 16:16:35 CEST 2010


Author: wk
Date: 2010-09-17 16:16:34 +0200 (Fri, 17 Sep 2010)
New Revision: 388

Modified:
   trunk/autogen.sh
   trunk/src/ChangeLog
   trunk/src/assuan-socket-connect.c
Log:
Fix portability bug#1282.


Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog	2010-09-01 10:10:28 UTC (rev 387)
+++ trunk/src/ChangeLog	2010-09-17 14:16:34 UTC (rev 388)
@@ -1,3 +1,8 @@
+2010-09-17  Werner Koch  <wk at g10code.com>
+
+	* assuan-socket-connect.c (INADDR_NONE): New replacement.  Fixes
+	bug#1282.
+
 2010-09-01  Werner Koch  <wk at g10code.com>
 
 	* assuan.h.in (ASSUAN_NO_LOGGING): New.

Modified: trunk/autogen.sh
===================================================================
--- trunk/autogen.sh	2010-09-01 10:10:28 UTC (rev 387)
+++ trunk/autogen.sh	2010-09-17 14:16:34 UTC (rev 388)
@@ -127,7 +127,7 @@
         fi
     fi
 
-    ./configure --enable-maintainer-mode  --prefix=${w32root}  \
+    $tsdir/configure --enable-maintainer-mode  --prefix=${w32root}  \
             --host=${host} --build=${build} \
             --with-gpg-error-prefix=${w32root} "$@"
 

Modified: trunk/src/assuan-socket-connect.c
===================================================================
--- trunk/src/assuan-socket-connect.c	2010-09-01 10:10:28 UTC (rev 387)
+++ trunk/src/assuan-socket-connect.c	2010-09-17 14:16:34 UTC (rev 388)
@@ -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) \





More information about the Gnupg-commits mailing list