[PATCH 02/10] build-sys: detect if volatile is available

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Do not defined volatile away on non-Linux systems, detect its presence
using AC_C_VOLATILE instead.

Signed-off-by: Guillem Jover <guillem@xxxxxxxxxxx>
---
 configure.ac            |    1 +
 disk-utils/fsck.minix.c |    4 ----
 2 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index f61102c..6784112 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,6 +71,7 @@ AC_PROG_CC_STDC
 AC_GNU_SOURCE
 AC_CANONICAL_HOST
 AC_C_CONST
+AC_C_VOLATILE
 AC_C_BIGENDIAN
 
 dnl libtool-2
diff --git a/disk-utils/fsck.minix.c b/disk-utils/fsck.minix.c
index af54c98..c9bd653 100644
--- a/disk-utils/fsck.minix.c
+++ b/disk-utils/fsck.minix.c
@@ -107,10 +107,6 @@
 #include "nls.h"
 #include "pathnames.h"
 
-#ifndef __linux__
-#define volatile
-#endif
-
 #define ROOT_INO 1
 
 #define UPPER(size,n) ((size+((n)-1))/(n))
-- 
1.6.4.3

--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux