From owner-cvs-all Mon Jan 11 05:03:50 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA29841 for cvs-all-outgoing; Mon, 11 Jan 1999 05:03:50 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA29835; Mon, 11 Jan 1999 05:03:45 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id AAA02776; Tue, 12 Jan 1999 00:03:10 +1100 Date: Tue, 12 Jan 1999 00:03:10 +1100 From: Bruce Evans Message-Id: <199901111303.AAA02776@godzilla.zeta.org.au> To: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, msmith@FreeBSD.ORG Subject: Re: cvs commit: src/include unistd.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > Modified files: > include unistd.h > Log: > optreset is a POSIX extension, make it visible in POSIX_SOURCE scope. > Submitted by: Andrzej Bialecki This is completely wrong. _POSIX_SOURCE is for POSIX.1. Much messier ifdefs, which we don't attempt, are required for POSIX.2 and later versions. getopt() and most of the getopt() variables are in POSIX.2, but optreset seems to be in a later version. Your previous commit to this file only had wrong style. It places the declaration of optreset with the declaration of the getsubopt() variable instead of with the declaration of the other getopt() variables. Fixing this style bug would have given the same effect as the present commit, since the getopt() declarations are also incorrectly scoped. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message