From a0f32454b61a5965303d2d18be3098ffdea8c867 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 13 Apr 2009 11:22:55 +0000 Subject: [PATCH] PR: 1898 Submitted by: Ger Hobbelt Approved by: steve@openssl.org Include correct headers in selftest.pl generated code. --- util/selftest.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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`; -- 2.25.1