-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/Configure b/Configure | ||
index 87e16cd..aaafb9c 100755 | ||
--- a/Configure | ||
+++ b/Configure | ||
@@ -2070,6 +2070,7 @@ echo " " | ||
echo "Checking for GNU cc in disguise and/or its version number..." >&4 | ||
$cat >gccvers.c <<EOM | ||
#include <stdio.h> | ||
+#include <stdlib.h> | ||
int main() { | ||
#ifdef __GNUC__ | ||
#ifdef __VERSION__ | ||
@@ -2560,7 +2561,8 @@ and I got the following output: | ||
EOM | ||
$cat > try.c <<'EOF' | ||
#include <stdio.h> | ||
-main() { exit(0); } | ||
+#include <stdlib.h> | ||
+int main() { exit(0); } | ||
EOF | ||
dflt=y | ||
if sh -c "$cc $optimize $ccflags try.c -o try $ldflags" >>try.msg 2>&1; then | ||
@@ -3262,6 +3264,7 @@ echo " " | ||
echo "Checking whether your compiler can handle __attribute__ ..." >&4 | ||
$cat >attrib.c <<'EOCP' | ||
#include <stdio.h> | ||
+#include <stdlib.h> | ||
void croak (char* pat,...) __attribute__((format(printf,1,2),noreturn)); | ||
EOCP | ||
if $cc $ccflags -c attrib.c >attrib.out 2>&1 ; then | ||
|