diff --git a/lib/common.c b/lib/common.c index 62668ce43..3be17b7f6 100644 --- a/lib/common.c +++ b/lib/common.c @@ -18,18 +18,12 @@ #include #include #include +#include #include "util.h" #include "work.h" #include "common.h" -#ifndef FALLOC_FL_KEEP_SIZE -#define FALLOC_FL_KEEP_SIZE 0x01 -#endif -#ifndef FALLOC_FL_PUNCH_HOLE -#define FALLOC_FL_PUNCH_HOLE 0x02 -#endif - static struct work_queue *util_wqueue; void register_util_wq(struct work_queue *wq) diff --git a/sheep/store/common.c b/sheep/store/common.c index d8e8ea4c7..946af5bf8 100644 --- a/sheep/store/common.c +++ b/sheep/store/common.c @@ -20,10 +20,6 @@ char *epoch_path; struct store_driver *sd_store; LIST_HEAD(store_drivers); -#ifndef FALLOC_FL_PUNCH_HOLE -#define FALLOC_FL_PUNCH_HOLE 0x02 -#endif - #define sector_algined(x) ({ ((x) & (SECTOR_SIZE - 1)) == 0; }) static inline bool iocb_is_aligned(const struct siocb *iocb) diff --git a/tests/unit/lib/test_punchhole.c b/tests/unit/lib/test_punchhole.c index d538331c1..b9dce2aac 100644 --- a/tests/unit/lib/test_punchhole.c +++ b/tests/unit/lib/test_punchhole.c @@ -4,6 +4,7 @@ #include /* O_* flags */ #include #include +#include #include "util.h" #include "Mocklogger.h"