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

[PATCH] Compile fix for SCO OpenServer

From
Aidan Van Dyk <aidan@highrise.ca>
Date
Dec 5, 2007, 17:21 UTC
Message-ID
<20071205172125.GF12636@yugib.highrise.ca>

SCO OpenServer hides the definitions of (at least) u_short and friends if _XOPEN_SOURCE is defined.

Signed-off-by: Aidan Van Dyk <aidan@highrise.ca>
---
diff --git a/git-compat-util.h b/git-compat-util.h
index ca0a597..be8cbe8 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -24,7 +24,7 @@
 /* Approximation of the length of the decimal representation of this type. */
 #define decimal_length(x)      ((int)(sizeof(x) * 2.56 + 0.5) + 1)

-#if !defined(__APPLE__) && !defined(__FreeBSD__)
+#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined (__OPENSERVER__)
 #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
Next: Aidan Van Dyk
Message 1 of 14 in “Compile fix for SCO OpenServer”
  1. Compile fix for SCO OpenServerAidan Van Dyk, Dec 5, 2007
  2. Compile fix for SCO OPenServerAidan Van Dyk, Jul 30, 2008
  3. Junio C HamanoJul 30, 2008
  4. Boyd Lynn GerberJul 30, 2008
  5. Junio C HamanoJul 30, 2008
  6. Aidan Van DykJul 30, 2008
  7. Boyd Lynn GerberJul 30, 2008
  8. Aidan Van DykJul 30, 2008
  9. Boyd Lynn GerberJul 30, 2008
  10. Aidan Van DykJul 30, 2008
  11. Boyd Lynn GerberJul 31, 2008
  12. Aidan Van DykJul 31, 2008
  13. Boyd Lynn GerberJul 31, 2008
  14. Boyd Lynn GerberJul 30, 2008

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.