From 7fd9ec4d98e289b351ab73f36c62a2dc24c2dc25 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Tue, 5 Feb 2013 14:26:42 -0500 Subject: [PATCH] Generate a valid config.h even if stdarg.h and varargs.h are both missing. Whilst we can't build perl on such a crippled system, there's no excuse for logical errors in config.sh resulting in an invalid config.h This is extracted from [perl #112494] invalid config.h if stdarg.h and varargs.h both missing https://rt.perl.org/rt3//Ticket/Display.html?id=112494 --- U/modified/i_varhdr.U | 1 + U/perl/need_va_copy.U | 1 + 2 files changed, 2 insertions(+) diff --git a/U/modified/i_varhdr.U b/U/modified/i_varhdr.U index f007788..7f50ced 100644 --- a/U/modified/i_varhdr.U +++ b/U/modified/i_varhdr.U @@ -126,6 +126,7 @@ chmod +x varargs : now check which varargs header should be included echo " " i_varhdr='' +val='' case "$valstd" in "$define") if `./varargs I_STDARG`; then diff --git a/U/perl/need_va_copy.U b/U/perl/need_va_copy.U index 0cb5d0f..300d1c1 100644 --- a/U/perl/need_va_copy.U +++ b/U/perl/need_va_copy.U @@ -93,6 +93,7 @@ EOCP $rm_try ;; *) echo "You don't have , not checking for va_copy()." >&4 + need_va_copy="$undef" ;; esac -- 1.8.3.1