Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2002 10:57:52 -0500
From:      Mike Barcroft <mike@FreeBSD.org>
To:        "Vasyl S. Smirnov" <sv@astral.ntu-kpi.kiev.ua>
Cc:        markp@FreeBSD.org, freebsd-current@FreeBSD.ORG
Subject:   Re: sys/file.h and POSIX
Message-ID:  <20021208105752.F74206@espresso.q9media.com>
In-Reply-To: <20021208142743.GA1195@astral.ntu-kpi.kiev.ua>; from sv@astral.ntu-kpi.kiev.ua on Sun, Dec 08, 2002 at 04:27:44PM %2B0200
References:  <509390000.1039349835@leeloo.intern.geht.de> <20021208142743.GA1195@astral.ntu-kpi.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--9dgjiU4MmWPVapMU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

[CC'd port's maintainer.]

Vasyl S. Smirnov <sv@astral.ntu-kpi.kiev.ua> writes:
> On Sun, Dec 08, 2002 at 01:17:15PM +0100, Marc Recht wrote:
> > Hi!
> > 
> > While compiling some third-party code I got this:
> > gcc -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE_=600 
> > -D_XOPEN_SOURCE_EXTENDED=1 test.c
> > In file included from test.c:2:
> > /usr/include/sys/file.h:130: syntax error before "u_int"
> > 
> > This makes me wonder a bit.. Shouldn't the header at least be includeable ? 
> > Eg. setting __BSD_VISIBLE around xfile ?
> 
> The same thing with sys/vmmeter.h
> 
> My previous post about bubblemon-dockapp build failure was actually about this
> missing header <sys/types.h>

No, this is a completely different issue.  This port specifies no
standards.  This port depended on one of the headers it included to
include <sys/types.h>.  I'm not sure which header change caused this,
but it was a bad assumption on the application writer's part.  The
attached patch fixes the problem with the port.

Best regards,
Mike Barcroft

--9dgjiU4MmWPVapMU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch-sys_freebsd.c"

--- sys_freebsd.c.orig	Sun Dec  8 10:57:14 2002
+++ sys_freebsd.c	Sun Dec  8 10:56:19 2002
@@ -17,6 +17,7 @@
  *
  */
 
+#include <sys/types.h>
 #include <kvm.h>
 #include <fcntl.h>
 #include <sys/dkstat.h>

--9dgjiU4MmWPVapMU--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021208105752.F74206>