perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wolfgang Kinkeldei <wolfg...@kinkeldei.de>
Subject compiling Embperl 2.2 on Mac OS-X with apache 1.3.33
Date Tue, 21 Nov 2006 20:45:33 GMT
Hello,

when compiling Embperl 2.2 on Mac OS-X 10.4.8 using the built-in  
apache 1.3.33 a little patch on "eputil.c" has to get applied to  
ensure compiling runs without errors:


--- Embperl-2.2.0/eputil.c      2005-11-09 06:11:42.000000000 +0100
+++ Embperl-2.2.0_patched/eputil.c      2006-11-21 21:26:30.000000000  
+0100
@@ -2066,7 +2066,7 @@
#ifdef WIN32
extern long _timezone;
#else
-#ifndef __BSD_VISIBLE
+#if !defined(__BSD_VISIBLE) && !defined(__DARWIN_UNIX03)
extern long timezone;
#endif
#endif
@@ -2093,7 +2093,7 @@
                        tms->tm_hour, tms->tm_min, tms->tm_sec, tz >  
0?"+":"", tz);
#else
      localtime_r(&when, &tms);
-#ifndef __BSD_VISIBLE
+#if !defined(__BSD_VISIBLE) && !defined(__DARWIN_UNIX03)
      tz = -timezone / 36 + (tms.tm_isdst?100:0) ;
#else
      tz = -tms.tm_gmtoff / 36 + (tms.tm_isdst?100:0) ;


I hope it helps others :-)


Regards,

Wolfgang Kinkeldei

-- 

' /\_/\ ' .print[split??,"".(($/=q|Cms)+-03467:;<=|)=~tr!C-z -B! -z!)x
'( o.o )' .$/]->[hex]foreach split qr<>,qq+1ecd039ad65b025b8063475b+||
' > ^ < ' .q<!-- Wolfgang Kinkeldei - mailto:wolfgang@kinkeldei.de -->




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message