X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=net.c;h=1b142a3cd4a25b87fe2e31c86caaf32e4be5f51e;hp=463033bb710a36036ca37907ecc59016fd6dd304;hb=92d85d340495154f3fda23f322af13fc9de42155;hpb=e9b00a14a4653d767a9d0fe885aa0b6d56c42180 diff --git a/net.c b/net.c index 463033bb..1b142a3c 100644 --- a/net.c +++ b/net.c @@ -6,11 +6,7 @@ /** \file net.c Networking-related helper functions. */ -/* - * Since glibc 2.8, the _GNU_SOURCE feature test macro must be defined in order - * to obtain the definition of the ucred structure. - */ -#define _GNU_SOURCE +#include "para.h" #include #include @@ -32,7 +28,6 @@ #include -#include "para.h" #include "error.h" #include "net.h" #include "string.h" @@ -1018,7 +1013,7 @@ static void dispose_fds(int *fds, unsigned num) */ int recv_cred_buffer(int fd, char *buf, size_t size) { - char control[255]; + char control[255] __a_aligned(8); struct msghdr msg; struct cmsghdr *cmsg; struct iovec iov;