>>>>> "Brian" == Brian Gernhardt <benji@xxxxxxxxxxxxxxxxxx> writes: Brian> On Dec 20, 2006, at 8:08 PM, Randal L. Schwartz wrote: >>>>>>> "Terje" == Terje Sten Bjerkseth <terje@xxxxxxxxxxxxx> writes: >> >> Terje> +#ifndef __APPLE_CC__ Terje> #define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD Terje> needs 600 for S_ISLNK() */ Terje> #define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */ Terje> +#endif Terje> #define _GNU_SOURCE Terje> #define _BSD_SOURCE Terje> - >> >> I tried the moral equivalent of that, and it failed to compile many >> other things then. So that's not it. Brian> Well, it seems to work for me as is (although I applied it manually instead Brian> of dealing with copy/paste with a patch). I did it with #if 0 / #end instead of the __APPLE_CC__ symbol. But, weirdly, now that I used the symbol, I get a good compile. Does #if 0 not work? :) Sorry for being objectionable earlier then. I've attached the precise patch I used and works and verified. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@xxxxxxxxxxxxxx> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
>From 9e3f88df3f6b17804f53fb497202f0879ea5e5f3 Mon Sep 17 00:00:00 2001 From: Randal L. Schwartz <merlyn@xxxxxxxxxxxxxx> Date: Wed, 20 Dec 2006 17:32:21 -0800 Subject: [PATCH] patch-from-email --- git-compat-util.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/git-compat-util.h b/git-compat-util.h index bc296b3..41fa7f6 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -11,8 +11,10 @@ #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) +#ifndef __APPLE_CC__ #define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */ #define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */ +#endif #define _GNU_SOURCE #define _BSD_SOURCE -- 1.4.4.3.g9e3f8