summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/util/selftest.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/util/selftest.pl')
-rw-r--r--src/lib/libcrypto/util/selftest.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/util/selftest.pl b/src/lib/libcrypto/util/selftest.pl
index 4778c5ab01..7b32e9f4ff 100644
--- a/src/lib/libcrypto/util/selftest.pl
+++ b/src/lib/libcrypto/util/selftest.pl
@@ -78,7 +78,7 @@ print OUT "\n";
78 78
79print "Checking compiler...\n"; 79print "Checking compiler...\n";
80if (open(TEST,">cctest.c")) { 80if (open(TEST,">cctest.c")) {
81 print TEST "#include <stdio.h>\n#include <errno.h>\nmain(){printf(\"Hello world\\n\");}\n"; 81 print TEST "#include <stdio.h>\n#include <stdlib.h>\n#include <errno.h>\nmain(){printf(\"Hello world\\n\");}\n";
82 close(TEST); 82 close(TEST);
83 system("$cc -o cctest cctest.c"); 83 system("$cc -o cctest cctest.c");
84 if (`./cctest` !~ /Hello world/) { 84 if (`./cctest` !~ /Hello world/) {
@@ -96,7 +96,7 @@ if (open(TEST,">cctest.c")) {
96 print OUT "Can't create cctest.c\n"; 96 print OUT "Can't create cctest.c\n";
97} 97}
98if (open(TEST,">cctest.c")) { 98if (open(TEST,">cctest.c")) {
99 print TEST "#include <openssl/opensslv.h>\nmain(){printf(OPENSSL_VERSION_TEXT);}\n"; 99 print TEST "#include <stdio.h>\n#include <stdlib.h>\n#include <openssl/opensslv.h>\nmain(){printf(OPENSSL_VERSION_TEXT);}\n";
100 close(TEST); 100 close(TEST);
101 system("$cc -o cctest -Iinclude cctest.c"); 101 system("$cc -o cctest -Iinclude cctest.c");
102 $cctest = `./cctest`; 102 $cctest = `./cctest`;