[git] Assuan - branch, master, updated. libassuan-2.4.3-6-g87473cd
by NIIBE Yutaka
cvs at cvs.gnupg.org
Wed Sep 6 08:33:34 CEST 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPC library used by GnuPG".
The branch, master has been updated
via 87473cd29ca9d5e3fb1c3172126c1122472d8b90 (commit)
from 859f9a9754708572a6289853d7d95b9ee3eae589 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 87473cd29ca9d5e3fb1c3172126c1122472d8b90
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Wed Sep 6 15:24:10 2017 +0900
Define INADDR_LOOPBACK if not defined.
* src/assuan-socket.c (INADDR_LOOPBACK): Define.
--
INADDR_LOOPBACK is not defined in some systems. When defined, its
byte-order is not clearly defined in any specifications. So, best
portable way is not to use the macro INADDR_LOOPBACK at all but use
0x7f000001 directly.
Nevertheless, for systems which use libassuan, it's host byte-order.
So, adding the definition works.
GnuPG-bug-id: 2447
Suggested-by: Peter Dyballa
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
diff --git a/src/assuan-socket.c b/src/assuan-socket.c
index d7616ce..6131e5b 100644
--- a/src/assuan-socket.c
+++ b/src/assuan-socket.c
@@ -107,6 +107,11 @@
#endif
+#ifndef INADDR_LOOPBACK
+# define INADDR_LOOPBACK ((in_addr_t) 0x7f000001) /* 127.0.0.1. */
+#endif
+
+
/* The standard SOCKS and TOR port. */
#define SOCKS_PORT 1080
#define TOR_PORT 9050
-----------------------------------------------------------------------
Summary of changes:
src/assuan-socket.c | 5 +++++
1 file changed, 5 insertions(+)
hooks/post-receive
--
IPC library used by GnuPG
http://git.gnupg.org
More information about the Gnupg-commits
mailing list