Skip to content

Commit 761a889

Browse files
Gary V. Vaughangitster
authored andcommitted
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 <[email protected]> Signed-off-by: Gary V. Vaughan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 873c347 commit 761a889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-compat-util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
# define _XOPEN_SOURCE 500
5757
# endif
5858
#elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && \
59-
!defined(_M_UNIX) && !defined(sgi) && !defined(__DragonFly__)
59+
!defined(_M_UNIX) && !defined(__sgi) && !defined(__DragonFly__)
6060
#define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */
6161
#define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
6262
#endif

0 commit comments

Comments
 (0)