summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2008-06-23 22:29:16 +0200
committerDavid Härdeman <david@hardeman.nu>2008-06-23 22:29:16 +0200
commit4a24c736b5d0d63c6e2902cfb92ad556d462ae19 (patch)
tree01a2fe6fc43502b380bba95bb988ce62ad707090
parente4910c9e5cae89691512bec4145f66b63e406936 (diff)
Add stricter build flags
-rw-r--r--Makefile2
-rw-r--r--metastore.c1
-rw-r--r--utils.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f5b0a37..7d73dc6 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@
# Generic settings
#
CC = gcc
-CFLAGS = -g -Wall -D_FILE_OFFSET_BITS=64 -O2
+CFLAGS = -g -Wall -pedantic -std=c99 -D_FILE_OFFSET_BITS=64 -O2
LDFLAGS =
INCLUDES =
INSTALL = install -c
diff --git a/metastore.c b/metastore.c
index 473c180..f73b735 100644
--- a/metastore.c
+++ b/metastore.c
@@ -18,6 +18,7 @@
*
*/
+#define _BSD_SOURCE
#include <sys/types.h>
#include <sys/stat.h>
#include <getopt.h>
diff --git a/utils.c b/utils.c
index aa6df96..d9ac4cf 100644
--- a/utils.c
+++ b/utils.c
@@ -18,6 +18,7 @@
*
*/
+#define _BSD_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>