summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--bcacheadm.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 34d8694..60abbd8 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,8 @@ PREFIX=/usr
UDEVLIBDIR=/lib/udev
DRACUTLIBDIR=/lib/dracut
INSTALL=install
-CFLAGS+=-std=gnu99 -O2 -Wall -Werror -g -I.
+CFLAGS+=-std=gnu99 -O2 -Wall -Werror -g -Iinclude
+LDFLAGS+=-static
all: bcacheadm probe-bcache
diff --git a/bcacheadm.c b/bcacheadm.c
index d6e2d86..792b5b7 100644
--- a/bcacheadm.c
+++ b/bcacheadm.c
@@ -22,13 +22,12 @@
#include <stdint.h>
#include <blkid.h>
#include <string.h>
-#include <linux/fs.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <uuid/uuid.h>
#include <dirent.h>
-#include <bcache.h> //libbcache
+#include "bcache.h" //libbcache
#define PACKAGE_NAME "bcacheadm"
#define PACKAGE_VERSION "1.0"