Subject: Re: compiling current on amd64 failed
To: Kurt Schreiner <ks@ub.uni-mainz.de>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 03/09/2005 15:15:18
On Wed, Mar 09, 2005 at 02:03:43PM +0100, Kurt Schreiner wrote:
> Hi,
> 
> just got this w/ sources cvs updated an hour ago (or so):
> 
>     compile  libc/sockatmark.ln
> /u/NetBSD/arch/amd64/dest/usr/include/sys/socket.h(365): syntax error [249]
> /u/NetBSD/arch/amd64/dest/usr/include/sys/socket.h(392): syntax error [249]

Does this work? (Still surprised that uint64_t is OK, but uint32_t isn't..)

Cheers,

Patrick

Index: socket.h
===================================================================
RCS file: /cvsroot/src/sys/sys/socket.h,v
retrieving revision 1.73
diff -u -r1.73 socket.h
--- socket.h    9 Mar 2005 05:07:19 -0000       1.73
+++ socket.h    9 Mar 2005 15:12:35 -0000
@@ -73,6 +73,7 @@
  * Data types.
  */
 #include <sys/ansi.h>
+#include <sys/types.h>
 
 #ifndef sa_family_t
 typedef __sa_family_t  sa_family_t;