git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-compat-util.h: remove superfluous test for __sun__

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Aug 20, 2009, 01:27 UTC
Message-ID
<ZUMLsyRzm8CaPjRJDxp6IuUm1_m9f1dLWBj6Z5IUF8KBVpNTSnESx0ur_aqSCnNRKOLfSdPh12w@cipher.nrlssc.navy.mil>
From: Brandon Casey <drafnel@gmail.com>

This 'ifndef' macro is entered only when __sun__ is not defined. This test will never fail since it is located inside of the 'else' branch of an 'if' macro which tests whether __sun__ is defined. It has had no effect since the merge at 436f66b7.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
---
 git-compat-util.h |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/git-compat-util.h b/git-compat-util.h
index 9f941e4..71b5acb 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -57,10 +57,8 @@
 # endif
 #elif !defined(__APPLE__) && !defined(__FreeBSD__)  && !defined(__USLC__) && !defined(_M_UNIX) && !defined(sgi)
 #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.4
Message 1 of 1 in “git-compat-util.h: remove superfluous test for __sun__”
  1. git-compat-util.h: remove superfluous test for __sun__Brandon Casey, Aug 20, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.