]> err.no Git - util-linux/commitdiff
build-sys: detect if volatile is available
authorGuillem Jover <guillem@hadrons.org>
Thu, 8 Oct 2009 11:40:07 +0000 (13:40 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 9 Oct 2009 12:57:48 +0000 (14:57 +0200)
Do not defined volatile away on non-Linux systems, detect its presence
using AC_C_VOLATILE instead.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
configure.ac
disk-utils/fsck.minix.c

index f61102c809173a166ff6c4e841af68343776e9d9..6784112875ee116edda163a78ab39c05598848a8 100644 (file)
@@ -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
index af54c98734a50309895f9aca83cefab383ba44f4..c9bd6535913901532212182a7fd363485b46a14c 100644 (file)
 #include "nls.h"
 #include "pathnames.h"
 
-#ifndef __linux__
-#define volatile
-#endif
-
 #define ROOT_INO 1
 
 #define UPPER(size,n) ((size+((n)-1))/(n))