summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>