diff --git a/src/mountlist.c b/src/mountlist.c index 0dc4f922..7420b4e2 100644 --- a/src/mountlist.c +++ b/src/mountlist.c @@ -328,17 +328,17 @@ fstype_to_string (int t) } #endif /* MOUNTED_VMOUNT */ +#ifdef __linux__ + #define BROKEN __attribute__((unused)) +#else + #define BROKEN +#endif #if defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2 /* Return the device number from MOUNT_OPTIONS, if possible. Otherwise return (dev_t) -1. */ -#ifdef __linux__ - #define BROKEN __attribute__((unused)) -#else - #define BROKEN -#endif static dev_t dev_from_mount_options (BROKEN char const *mount_options)