aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2014-08-08 15:19:49 -0400
committerWladimir J. van der Laan <laanwj@gmail.com>2014-08-21 18:06:30 +0200
commit55911710f51f2b94dcb53c15db46ae73e6b7d95f (patch)
treea7f7b1df86fd13f8aed605c36039146f547b4e45
parent0991401cddc9a6f67b5170dfebfaa2679a518f13 (diff)
downloadbitcoin-55911710f51f2b94dcb53c15db46ae73e6b7d95f.tar.xz
build: fix FDELT_TYPE configure check
This probably never worked properly. Confirmed working now with every compiler I throw at it. Rebased-From: 8021cf8
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index cb152e3600..ebfa28530d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -325,7 +325,10 @@ if test x$use_glibc_compat != xno; then
#__fdelt_chk's params and return type have changed from long unsigned int to long int.
# See which one is present here.
AC_MSG_CHECKING(__fdelt_chk type)
- AC_TRY_COMPILE([#define __USE_FORTIFY_LEVEL 2
+ AC_TRY_COMPILE([#ifdef _FORTIFY_SOURCE
+ #undef _FORTIFY_SOURCE
+ #endif
+ #define _FORTIFY_SOURCE 2
#include <sys/select.h>
extern "C" long unsigned int __fdelt_warn(long unsigned int);],[],
[ fdelt_type="long unsigned int"],