skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit b8b5d27a138f32c6e400932fa8828a380a03d1d7
parent c20608b2b2cc91367ecc2d8fe5e4cc9d4b709285
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Sun, 21 Dec 2014 02:43:45 +0000

 OK, this one works, and the problem was actually on my side (failure to
use CMSG_LEN where required in tryancilautoclose).
 Also, good news: the sys/param.h inclusion in FreeBSD isn't necessary
anymore.

Diffstat:
Msrc/sysdeps/tryipv6.c | 5-----
Msrc/sysdeps/trylsock.c | 9++-------
Msrc/sysdeps/trysopeercred.c | 9++-------
3 files changed, 4 insertions(+), 19 deletions(-)

diff --git a/src/sysdeps/tryipv6.c b/src/sysdeps/tryipv6.c @@ -7,11 +7,6 @@ #define _XPG6 #include <sys/types.h> - -#if defined(__FreeBSD__) -# include <sys/param.h> -#endif - #include <errno.h> #include <string.h> #include <sys/socket.h> diff --git a/src/sysdeps/trylsock.c b/src/sysdeps/trylsock.c @@ -4,19 +4,14 @@ #undef _XOPEN_SOURCE #ifndef _XPG4_2 -# define _XPG4_2 +#define _XPG4_2 #endif #ifndef _GNU_SOURCE -# define _GNU_SOURCE +#define _GNU_SOURCE #endif #include <sys/types.h> - -#if defined(__FreeBSD__) -# include <sys/param.h> -#endif - #include <sys/socket.h> int main (void) diff --git a/src/sysdeps/trysopeercred.c b/src/sysdeps/trysopeercred.c @@ -4,19 +4,14 @@ #undef _XOPEN_SOURCE #ifndef _XPG4_2 -# define _XPG4_2 +#define _XPG4_2 #endif #ifndef _GNU_SOURCE -# define _GNU_SOURCE +#define _GNU_SOURCE #endif #include <sys/types.h> - -#if defined(__FreeBSD__) -# include <sys/param.h> -#endif - #include <sys/socket.h> #include <sys/un.h>