glusterfs api fadvise support
diff --git a/Makefile b/Makefile
index cef82d9..59fae9c 100644
--- a/Makefile
+++ b/Makefile
@@ -95,6 +95,9 @@
   SOURCE += engines/glusterfs.c
   SOURCE += engines/glusterfs_sync.c
   SOURCE += engines/glusterfs_async.c
+  ifdef CONFIG_GF_FADVISE
+    CFLAGS += "-DGFAPI_USE_FADVISE"
+  endif
 endif
 
 ifeq ($(CONFIG_TARGET_OS), Linux)