{"thread":{"id":"43742","subject":"[RFHC] _XOPEN_SOURCE and OpenBSD 3.9","startedAt":"2006-11-01T08:16:01Z","lastAt":"2006-11-01T08:16:01Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"297614","messageId":"7vbqnr8tvi.fsf@assigned-by-dhcp.cox.net","threadId":"43742","inReplyTo":null,"subject":"[RFHC] _XOPEN_SOURCE and OpenBSD 3.9","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-11-01T08:16:01Z","receivedAt":"2006-11-01T08:16:01Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"I was futzing with an OpenBSD 3.9 bochs today, and it appears\nthat without __BSD_VISIBILITY we get a complaint from the\ncompiler that says S_ISLNK() is implicitly declared function\n(cache.h has an inline create_ce_mode() that uses this macro).\n\nI do not think this breaks things on Linux boxes, but I do not\nhave access to other archs, hence this request for help and\ncomments.\n\nJason Riedy CC'ed who did the initial _XOPEN_SOURCE=500 for AIX\nportability.\n\nOh, yes, I know OpenBSD 4.0 is very soon coming...\n\ndiff --git a/convert-objects.c b/convert-objects.c\nindex 631678b..2ff19d2 100644\n--- a/convert-objects.c\n+++ b/convert-objects.c\n@@ -1,4 +1,4 @@\n-#define _XOPEN_SOURCE 500 /* glibc2 and AIX 5.3L need this */\n+#define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500; 600 for OBSD */\n #define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */\n #define _GNU_SOURCE\n #include <time.h>\n"}]}