From: Dr. Stephen Henson Date: Mon, 13 Apr 2009 11:22:55 +0000 (+0000) Subject: PR: 1898 X-Git-Tag: OpenSSL_1_0_0-beta2~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a0f32454b61a5965303d2d18be3098ffdea8c867;p=oweals%2Fopenssl.git PR: 1898 Submitted by: Ger Hobbelt Approved by: steve@openssl.org Include correct headers in selftest.pl generated code. --- diff --git a/util/selftest.pl b/util/selftest.pl index 4778c5ab01..7b32e9f4ff 100644 --- a/util/selftest.pl +++ b/util/selftest.pl @@ -78,7 +78,7 @@ print OUT "\n"; print "Checking compiler...\n"; if (open(TEST,">cctest.c")) { - print TEST "#include \n#include \nmain(){printf(\"Hello world\\n\");}\n"; + print TEST "#include \n#include \n#include \nmain(){printf(\"Hello world\\n\");}\n"; close(TEST); system("$cc -o cctest cctest.c"); if (`./cctest` !~ /Hello world/) { @@ -96,7 +96,7 @@ if (open(TEST,">cctest.c")) { print OUT "Can't create cctest.c\n"; } if (open(TEST,">cctest.c")) { - print TEST "#include \nmain(){printf(OPENSSL_VERSION_TEXT);}\n"; + print TEST "#include \n#include \n#include \nmain(){printf(OPENSSL_VERSION_TEXT);}\n"; close(TEST); system("$cc -o cctest -Iinclude cctest.c"); $cctest = `./cctest`;