diff options
-rw-r--r-- | src/ChangeLog | 3 | ||||
-rw-r--r-- | src/assuan-pipe-connect.c | 12 | ||||
-rw-r--r-- | src/assuan-socket.c | 12 |
3 files changed, 27 insertions, 0 deletions
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 <[email protected]> + * 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) { |