Tomas Carnecky wrote: > > On May 23, 2009, at 9:24 PM, Junio C Hamano wrote: >> diff --git a/git-compat-util.h b/git-compat-util.h >> index c7cf2d5..4236647 100644 >> --- a/git-compat-util.h >> +++ b/git-compat-util.h >> @@ -41,8 +41,10 @@ >> >> #if !defined(__APPLE__) && !defined(__FreeBSD__) && >> !defined(__USLC__) && !defined(_M_UNIX) >> #define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD >> needs 600 for S_ISLNK() */ >> +#ifndef __sun__ >> #define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */ >> #endif >> +#endif >> #define _ALL_SOURCE 1 >> #define _GNU_SOURCE 1 >> #define _BSD_SOURCE 1 >> -- >> 1.6.3.1.145.gb74d77 >> > > Until this commit a simple 'make prefix=...' worked just fine. Now I > have to explicitly add '-std=c99' to the gcc commandline. Is there a > reason why the makefile doesn't add this switch automatically? There are additionally patches on 'next' and more in the pipeline on 'pu' which adjust these feature macros when compiling on Solaris. See the bc/solaris series 8fccb00 which was merged to 'pu'. Also, if you happen to be using the Sun Studio suite 12 with c-compiler version 5.9, I'd be interested to know whether you can compile diff-delta.c, or whether you get an error (see commit 203ee91f). -brandon -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html