[CC'd port's maintainer.]

Vasyl S. Smirnov <[EMAIL PROTECTED]> 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
--- 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>

Reply via email to