[PATCH 01/10] build-sys: detect if const is available

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

 



Some systems define __STDC__ and do not have a working const, some do
not define the macro but do have a working const. Use AC_C_CONST to
check for its presence.

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

diff --git a/configure.ac b/configure.ac
index 7bf8bcd..f61102c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -70,6 +70,7 @@ AC_SUBST([usrlib_execdir])
 AC_PROG_CC_STDC
 AC_GNU_SOURCE
 AC_CANONICAL_HOST
+AC_C_CONST
 AC_C_BIGENDIAN
 
 dnl libtool-2
diff --git a/fsck/fsck.h b/fsck/fsck.h
index 8a0f70e..45b7844 100644
--- a/fsck/fsck.h
+++ b/fsck/fsck.h
@@ -8,7 +8,6 @@
 #define NOARGS void
 #else
 #define NOARGS
-#define const
 #endif
 
 #ifdef __GNUC__
-- 
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