From 85b95d4ff134edb1ffe36390143c5cbc0150cf7e Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 12 Apr 2010 08:27:38 +0000 Subject: [PATCH] Fix build for Haiku git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1455 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/mountlist.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)