[Pkg-gnupg-commit] [libassuan] 160/437: 2006-09-19 Marcus Brinkmann <marcus at g10code.de>

Eric Dorland eric at moszumanska.debian.org
Fri May 22 05:33:37 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 5c751af7b4b499f4949e1080f2039554acd63d20
Author: Marcus Brinkmann <mb at g10code.com>
Date:   Tue Sep 19 10:34:16 2006 +0000

    2006-09-19  Marcus Brinkmann  <marcus at g10code.de>
    
    	* assuan-pipe-connect.c: Add hacks for Slowaris.
    	* assuan-socket.c: Likewise here.
---
 src/ChangeLog             |  3 +++
 src/assuan-pipe-connect.c | 12 ++++++++++++
 src/assuan-socket.c       | 12 ++++++++++++
 3 files changed, 27 insertions(+)

diff --git a/src/ChangeLog b/src/ChangeLog
index 169fa0f..65b1b7f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
 2006-09-19  Marcus Brinkmann  <marcus at g10code.de>
 
+	* assuan-pipe-connect.c: Add hacks for Slowaris.
+	* assuan-socket.c: Likewise here.
+
 	* assuan.h (enum): Avoid trailing comma in enumerator list.  Ugh.
 
 	* mkerrors (_assuan_error): Change return type to assuan_error_t.
diff --git a/src/assuan-pipe-connect.c b/src/assuan-pipe-connect.c
index d389741..6260e86 100644
--- a/src/assuan-pipe-connect.c
+++ b/src/assuan-pipe-connect.c
@@ -39,6 +39,18 @@
 
 #include "assuan-defs.h"
 
+/* Hacks for Slowaris.  */
+#ifndef PF_LOCAL
+# ifdef PF_UNIX
+#  define PF_LOCAL PF_UNIX
+# else
+#  define PF_LOCAL AF_UNIX
+# endif
+#endif
+#ifndef AF_LOCAL
+# define AF_LOCAL AF_UNIX
+#endif
+
 #ifdef _POSIX_OPEN_MAX
 #define MAX_OPEN_FDS _POSIX_OPEN_MAX
 #else
diff --git a/src/assuan-socket.c b/src/assuan-socket.c
index 6fff03a..6aa5708 100644
--- a/src/assuan-socket.c
+++ b/src/assuan-socket.c
@@ -30,6 +30,18 @@
 #endif
 #include "assuan-defs.h"
 
+/* Hacks for Slowaris.  */
+#ifndef PF_LOCAL
+# ifdef PF_UNIX
+#  define PF_LOCAL PF_UNIX
+# else
+#  define PF_LOCAL AF_UNIX
+# endif
+#endif
+#ifndef AF_LOCAL
+# define AF_LOCAL AF_UNIX
+#endif
+
 int
 _assuan_close (int fd)
 {

-- 
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