Take _GNU_SOURCE out of source and put it in CFLAGS

This commit is contained in:
Alex Young
2012-06-13 09:59:08 +01:00
parent c7525f87dc
commit b986f6b63e
5 changed files with 20 additions and 14 deletions

View File

@@ -227,7 +227,6 @@ int control_mirror(struct control_params* client, int linesc, char** lines)
remote_size = socket_nbd_read_hello(fd);
remote_size = remote_size; // shush compiler
mirror = xmalloc(sizeof(struct mirror_status));
mirror->client = fd;

View File

@@ -1,6 +1,3 @@
#define _LARGEFILE64_SOURCE
#define _GNU_SOURCE
#include <sys/mman.h>
#include <sys/sendfile.h>
#include <sys/ioctl.h>

View File

@@ -10,10 +10,7 @@
#define REQUEST_READ 0
#define REQUEST_WRITE 1
#define REQUEST_DISCONNECT 2
#ifndef _LARGEFILE64_SOURCE
# define _LARGEFILE64_SOURCE
#endif
#define REQUEST_ENTRUST (1<<16)
#include <linux/types.h>
#include <inttypes.h>

View File

@@ -1,10 +1,6 @@
#ifndef SERVE_H
#define SERVE_H
#define _GNU_SOURCE
#define _LARGEFILE64_SOURCE
#include <sys/types.h>
#include <unistd.h>