summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-05 17:24:01 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-05 17:24:01 +0200
commit38c4bbc4b62e18ae212ca5772dc3cd955db33415 (patch)
tree8852d4af24e36714433ac90044c16202bedc5b99
parent93b634d9c6adf8b2d7e279886c772b1b317bef20 (diff)
downloadpgfuse-38c4bbc4b62e18ae212ca5772dc3cd955db33415.tar.gz
pgfuse-38c4bbc4b62e18ae212ca5772dc3cd955db33415.tar.bz2
some fixes and docus in Makefiles
-rw-r--r--Makefile11
-rw-r--r--pgfuse.c1
2 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5f2af39..3a75684 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,15 @@
all: pgfuse
-CFLAGS = -Wall -g `pkg-config fuse --cflags`
+# for debugging
+CFLAGS = -Wall -Wextra -pedantic -g
+# for releasing
+CFLAGS = -Wall
+
+# declare version of FUSE API we want to program against
+CFLAGS += -DFUSE_USE_VERSION=26
+
+# use pkg-config to detemine compiler/linker flags for libfuse
+CFLAGS += `pkg-config fuse --cflags`
LDFLAGS = `pkg-config fuse --libs`
clean:
diff --git a/pgfuse.c b/pgfuse.c
index 00bfea6..07d5a97 100644
--- a/pgfuse.c
+++ b/pgfuse.c
@@ -18,6 +18,7 @@
#include <unistd.h> /* for exit */
#include <stdlib.h> /* for EXIT_FAILURE, EXIT_SUCCESS */
#include <stdio.h> /* for fprintf */
+#include <string.h> /* for strdup */
#include "pgfuse_cmdline.h" /* for command line and option parsing (gengetopt) */