Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <junkio@cox.net>
To: git@vger.kernel.org
Cc: Jason Riedy <ejr@EECS.Berkeley.EDU>
Subject: [RFHC] _XOPEN_SOURCE and OpenBSD 3.9
Date: Wed, 01 Nov 2006 00:16:01 -0800	[thread overview]
Message-ID: <7vbqnr8tvi.fsf@assigned-by-dhcp.cox.net> (raw)

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>

                 reply	other threads:[~2006-11-01  8:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vbqnr8tvi.fsf@assigned-by-dhcp.cox.net \
    --to=junkio@cox.net \
    --cc=ejr@EECS.Berkeley.EDU \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox