From: Gary V. Vaughan Date: Wed, 2 Jun 2010 01:55:36 +0000 (-0500) Subject: git-compat-util.h: use apparently more common __sgi macro to detect SGI IRIX X-Git-Tag: v1.7.2-rc0~3^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=761a889a97a33d277f8a6607a4696164391f9d5d;p=git.git git-compat-util.h: use apparently more common __sgi macro to detect SGI IRIX IRIX 6.5.26m does not define the 'sgi' macro, but it does define an '__sgi' macro. Since later IRIX versions (6.5.29m) define both macros, and since an underscore prefixed macro is preferred anyway, use '__sgi' to detect compilation on SGI IRIX. Signed-off-by: Brandon Casey Signed-off-by: Gary V. Vaughan Signed-off-by: Junio C Hamano --- diff --git a/git-compat-util.h b/git-compat-util.h index 7e62b5527..b96912b5d 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -56,7 +56,7 @@ # define _XOPEN_SOURCE 500 # endif #elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && \ - !defined(_M_UNIX) && !defined(sgi) && !defined(__DragonFly__) + !defined(_M_UNIX) && !defined(__sgi) && !defined(__DragonFly__) #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