diff options
author | Pino Toscano <toscano.pino@tiscali.i> | 2013-03-14 18:00:17 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-03-15 02:20:45 +0100 |
commit | d42c52e86271b102cbc2fd94a99350364393e705 (patch) | |
tree | 239637c6a46387428695e447f2b1e9f58d2ff93e | |
parent | 0b890f927fa2e377be72384d94f42d607b896c4a (diff) |
Define _GNU_SOURCE at Makefile level
Provide the _GNU_SOURCE define at the CFLAGS, instead of repeating it in every
source.
* Makefile (CFLAGS): Add -D_GNU_SOURCE.
* lib.c (_GNU_SOURCE): Remove define.
* lnode.c (_GNU_SOURCE): Likewise.
* main.c (_GNU_SOURCE): Likewise.
* ncache.c (_GNU_SOURCE): Likewise.
* netfs.c (_GNU_SOURCE): Likewise.
* node.c (_GNU_SOURCE): Likewise.
* options.c (_GNU_SOURCE): Likewise.
* pattern.c (_GNU_SOURCE): Likewise.
* stow.c (_GNU_SOURCE): Likewise.
* ulfs.c (_GNU_SOURCE): Likewise.
* update.c (_GNU_SOURCE): Likewise.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | lib.c | 2 | ||||
-rw-r--r-- | lnode.c | 2 | ||||
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | ncache.c | 2 | ||||
-rw-r--r-- | netfs.c | 2 | ||||
-rw-r--r-- | node.c | 2 | ||||
-rw-r--r-- | options.c | 2 | ||||
-rw-r--r-- | pattern.c | 2 | ||||
-rw-r--r-- | stow.c | 2 | ||||
-rw-r--r-- | ulfs.c | 2 | ||||
-rw-r--r-- | update.c | 2 |
12 files changed, 1 insertions, 23 deletions
@@ -22,7 +22,7 @@ CPP = gcc -E -x c MIGCOM = mig -cc cat - /dev/null -CFLAGS += -Wall -g -O2 -D_FILE_OFFSET_BITS=64 -std=gnu99 \ +CFLAGS += -Wall -g -O2 -D_FILE_OFFSET_BITS=64 -std=gnu99 -D_GNU_SOURCE \ -DDEBUG LDFLAGS += -lnetfs -lfshelp -liohelp -lpthread \ -lports -lihash -lshouldbeinlibc -lhurdbugaddr @@ -17,8 +17,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#define _GNU_SOURCE - #include <pthread.h> #include <error.h> #include <dirent.h> @@ -20,8 +20,6 @@ /* `light node' management. See unionfs.h for an explanation of light nodes. */ -#define _GNU_SOURCE - #include <pthread.h> #include <error.h> #include <stdlib.h> @@ -17,8 +17,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#define _GNU_SOURCE - #include <hurd/netfs.h> #include <argp.h> #include <argz.h> @@ -17,8 +17,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#define _GNU_SOURCE - #include <hurd/netfs.h> #include <error.h> #include <stdlib.h> @@ -18,8 +18,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#define _GNU_SOURCE - #include <hurd/netfs.h> #include <error.h> #include <argz.h> @@ -19,8 +19,6 @@ /* node management. */ -#define _GNU_SOURCE - #include <hurd/netfs.h> #include <stdlib.h> #include <error.h> @@ -19,8 +19,6 @@ /* Argument parsing. */ -#define _GNU_SOURCE - #include <argp.h> #include <error.h> @@ -19,8 +19,6 @@ /* Pattern list management. */ -#define _GNU_SOURCE - #include <hurd/netfs.h> #include <stdlib.h> #include <fnmatch.h> @@ -20,8 +20,6 @@ /* Stow mode for unionfs. */ -#define _GNU_SOURCE - #include <argp.h> #include <error.h> @@ -19,8 +19,6 @@ /* Underlying filesystem management. */ -#define _GNU_SOURCE - #include <stdlib.h> #include <error.h> #include <string.h> @@ -20,8 +20,6 @@ /* Update thread: A clean way to solve locking issues of root node update. */ -#define _GNU_SOURCE - #include <errno.h> #include <string.h> |