From e79829db464dece64a698f913c98154a4bf7db0b Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 8 Oct 2009 13:40:07 +0200 Subject: [PATCH] build-sys: detect if volatile is available Do not defined volatile away on non-Linux systems, detect its presence using AC_C_VOLATILE instead. Signed-off-by: Guillem Jover --- configure.ac | 1 + disk-utils/fsck.minix.c | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index f61102c8..67841128 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 af54c987..c9bd6535 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)) -- 2.39.5