From 4a24c736b5d0d63c6e2902cfb92ad556d462ae19 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20H=C3=A4rdeman?= <david@hardeman.nu>
Date: Mon, 23 Jun 2008 22:29:16 +0200
Subject: Add stricter build flags

---
 Makefile    | 2 +-
 metastore.c | 1 +
 utils.c     | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

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>
-- 
cgit v1.2.1