summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index d348cc1079..47c9a1c4f8 100755
--- a/configure
+++ b/configure
@@ -2283,6 +2283,12 @@ if [ -n "$_def_restrict_keyword" ]; then
else
echores "none"
fi
+# Avoid infinite recursion loop ("#define restrict restrict")
+if [ "$_def_restrict_keyword" != "restrict" ]; then
+ _def_restrict_keyword="#define restrict $_def_restrict_keyword"
+else
+ _def_restrict_keyword=""
+fi
echocheck "kstat"
@@ -6588,7 +6594,7 @@ $_def_runtime_cpudetection
$_def_dynamic_plugins
/* "restrict" keyword */
-#define restrict $_def_restrict_keyword
+$_def_restrict_keyword
/* attribute(used) as needed by some compilers */
#if (__GNUC__ * 100 + __GNUC_MINOR__ >= 300)