From: Andy Dougherty Date: Tue, 23 Oct 2007 08:54:51 +0000 (-0400) Subject: Re: [perl #46725] v5.10.0 util.c and pp_sys.c fail to compile under Mac OS X X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=463bdbaf2367b6452a2bbeef256dff834d61429e;p=p5sagit%2Fp5-mst-13.2.git Re: [perl #46725] v5.10.0 util.c and pp_sys.c fail to compile under Mac OS X Message-ID: Date: Tue, 23 Oct 2007 08:54:51 -0400 (EDT) p4raw-id: //depot/perl@32181 --- diff --git a/cflags.SH b/cflags.SH index 412beeb..f8ad3ef 100755 --- a/cflags.SH +++ b/cflags.SH @@ -66,31 +66,31 @@ cat >_cflags.c <<__EOT__ #ifdef I_UNISTD #include #endif -#ifdef I_SYSTYPES +#ifdef I_SYS_TYPES #include #endif -#ifdef I_SYSPARAM +#ifdef I_SYS_PARAM #include #endif -#ifdef I_SYSRESOURCE +#ifdef I_SYS_RESOURCE #include #endif -#ifdef I_SYSSELECT +#ifdef I_SYS_SELECT #include #endif #if defined(HAS_SOCKET) && !defined(VMS) && !defined(WIN32) /* See perl.h. */ #include #endif -#ifdef I_SYSSTAT +#ifdef I_SYS_STAT #include #endif -#ifdef I_SYSTIME +#ifdef I_SYS_TIME #include #endif -#ifdef I_SYSTIMES +#ifdef I_SYS_TIMES #include #endif -#ifdef I_SYSWAIT +#ifdef I_SYS_WAIT #include #endif /* The gcc -ansi can cause a lot of noise in Solaris because of: @@ -139,7 +139,7 @@ Intel*) ;; # # Is that you, Intel C++? case " $ccflags " in *" $opt "*) ;; # Skip if already there. *) rm -f _cflags$_exe - case "`$cc $cflags $warn $opt _cflags.c -o _cflags$_exe 2>&1`" in + case "`$cc $cflags $warn $stdflags $opt _cflags.c -o _cflags$_exe 2>&1`" in *"unrecognized"*) ;; *"implicit declaration"*) ;; # Was something useful hidden? *"Invalid"*) ;;