[Pkg-gnupg-commit] [libassuan] 330/437: Fix portability bug#1282.

Eric Dorland eric at moszumanska.debian.org
Fri May 22 05:33:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository libassuan.

commit e19ed1bfdac29039a6f84cc26aa55185e990e22d
Author: Werner Koch <wk at gnupg.org>
Date:   Fri Sep 17 14:16:34 2010 +0000

    Fix portability bug#1282.
---
 autogen.sh                  | 2 +-
 src/ChangeLog               | 5 +++++
 src/assuan-socket-connect.c | 3 +++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/autogen.sh b/autogen.sh
index f1154e7..cb2ee93 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -127,7 +127,7 @@ if [ "$myhost" = "w32" ]; then
         fi
     fi
 
-    ./configure --enable-maintainer-mode  --prefix=${w32root}  \
+    $tsdir/configure --enable-maintainer-mode  --prefix=${w32root}  \
             --host=${host} --build=${build} \
             --with-gpg-error-prefix=${w32root} "$@"
 
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  <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.
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) \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libassuan.git



More information about the Pkg-gnupg-commit mailing list