From 5c5f44e2a011a13cf320a5f82f3c5bd8563f3cef Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sun, 6 Nov 2016 16:29:19 +0100 Subject: [PATCH] Remove build warnings in Mac OS X --- cmdline/unix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmdline/unix.c b/cmdline/unix.c index 5738f46b..c19f13b7 100644 --- a/cmdline/unix.c +++ b/cmdline/unix.c @@ -188,6 +188,7 @@ static int devresolve_proc(uint64_t device, char* path, size_t path_size) * Bug 711881 - too funny btrfs st_dev numbers * https://bugzilla.redhat.com/show_bug.cgi?id=711881 */ +#if HAVE_LINUX_DEVICE static int devdereference(uint64_t device, uint64_t* new_device) { char path[PATH_MAX]; @@ -219,6 +220,7 @@ static int devdereference(uint64_t device, uint64_t* new_device) log_tag("dereference:%u:%u: found %u:%u\n", major(device), minor(device), major(st.st_rdev), minor(st.st_rdev)); return 0; } +#endif /** * Read a file extracting the specified tag TAG=VALUE format.