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

Re: [PATCH] Fix _XOPEN_SOURCE problem on DragonFly

From
YTYONETANI Tomokazu <qhwt+git@les.ath.cx>
Date
Apr 1, 2010, 07:37 UTC
Message-ID
<20100401073742.GA52362@les.ath.cx>
In-Reply-To
<20100304020522.GA76036@les.ath.cx>

Hello. Is there anything else I need to do to get this in?

On Thu, Mar 04, 2010 at 11:05:22AM +0900, YONETANI Tomokazu wrote:
Show 23 quoted lines
> Hi.
> DragonFly has the same problem that FreeBSD used to have.  Since the
> return value of implicitly declared functions defaults to int, it can
> cause disasters on architectures where sizeof(int) < sizeof(void *).
> The patch below should address this issue.
> 
> Best regards,
> YONETANI Tomokazu.
> 
> diff --git a/git-compat-util.h b/git-compat-util.h
> index a3c4537..e292926 100644
> --- a/git-compat-util.h
> +++ b/git-compat-util.h
> @@ -55,7 +55,8 @@
>  # else
>  # define _XOPEN_SOURCE 500
>  # endif
> -#elif !defined(__APPLE__) && !defined(__FreeBSD__)  && !defined(__USLC__) && !defined(_M_UNIX) && !defined(sgi)
> +#elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && \
> +      !defined(_M_UNIX) && !defined(sgi) && !defined(__DragonFly__)
>  #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
Previous: YONETANI TomokazuNext: Tay Ray Chuan
Message 2 of 4 in “Fix _XOPEN_SOURCE problem on DragonFly”
  1. Fix _XOPEN_SOURCE problem on DragonFlyYONETANI Tomokazu, Mar 4, 2010
  2. YONETANI TomokazuApr 1, 2010
  3. Tay Ray ChuanApr 1, 2010
  4. YONETANI TomokazuApr 2, 2010

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.