NetBSD Problem Report #8050
Received: (qmail 7242 invoked from network); 23 Jul 1999 23:42:56 -0000
Message-Id: <199907232342.QAA27866@nooksack.ldc.cs.wwu.edu>
Date: Fri, 23 Jul 1999 16:42:54 -0700 (PDT)
From: cgd@netbsd.org
Reply-To: cgd@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: unistd.h doesn't work with -D_XOPEN_SOURCE=500
X-Send-Pr-Version: www-1.0
>Number: 8050
>Category: standards
>Synopsis: unistd.h doesn't work with -D_XOPEN_SOURCE=500
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 23 16:50:01 +0000 1999
>Closed-Date: Wed Oct 24 08:11:18 +0000 2001
>Last-Modified: Wed Oct 24 08:11:18 +0000 2001
>Originator: Chris Demetriou
>Release: 1.4
>Organization:
>Environment:
NetBSD/i386, running a stock 1.4 install.
and recent -current
>Description:
unistd.h doesn't tolerate being compiled with -D_XOPEN_SOURCE=500.
it would appear based on the (other) contents of unistd.h that
-D_XOPEN_SOURCE=500 is a reasonable thing to use, but unistd.h croaks
on it, with a message like:
/usr/include/unistd.h:270: syntax error before `fd_set'
>How-To-Repeat:
cat << __EOF__ > bar.c
#include <unistd.h>
main(){}
__EOF__
cc bar.c
cc -D_XOPEN_SOURCE bar.c
cc -D_XOPEN_SOURCE=500 bar.c
>Fix:
fix conditions under which fd_set will be defined, it'd seem.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: kleink
State-Changed-When: Wed Oct 24 01:09:32 PDT 2001
State-Changed-Why:
Fixed in 1.5.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.