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

[RFHC] _XOPEN_SOURCE and OpenBSD 3.9

From
Junio C Hamano <junkio@cox.net>
Date
Nov 1, 2006, 08:16 UTC
Message-ID
<7vbqnr8tvi.fsf@assigned-by-dhcp.cox.net>

I was futzing with an OpenBSD 3.9 bochs today, and it appears that without __BSD_VISIBILITY we get a complaint from the compiler that says S_ISLNK() is implicitly declared function (cache.h has an inline create_ce_mode() that uses this macro).

I do not think this breaks things on Linux boxes, but I do not have access to other archs, hence this request for help and comments.

Jason Riedy CC'ed who did the initial _XOPEN_SOURCE=500 for AIX portability.

Oh, yes, I know OpenBSD 4.0 is very soon coming...
diff --git a/convert-objects.c b/convert-objects.c
index 631678b..2ff19d2 100644
--- a/convert-objects.c
+++ b/convert-objects.c
@@ -1,4 +1,4 @@
-#define _XOPEN_SOURCE 500 /* glibc2 and AIX 5.3L need this */
+#define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500; 600 for OBSD */
 #define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
 #define _GNU_SOURCE
 #include <time.h>
Message 1 of 1 in “[RFHC] _XOPEN_SOURCE and OpenBSD 3.9”
  1. Junio C HamanoNov 1, 2006

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.