Patrick Gardella wrote:
> 
> I built and installed -current on a laptop yesterday (10/23/00), and
> went to build XFree86 3.3.6_3 today from the ports directory.
> 
> It built fine, but when you run make install, it dies, complaining of
> syntax errors in machine/endian.h:
> 
> In file included from /usr/include/sys/wait.h:93,
>                  from vgaHW.c:44:
> /usr/include/machine/endian.h:72: syntax error before
> `__uint16_swap_unit32'
> /usr/include/machine/endian.h:72: syntax error before `__x'
> <snip>

XFree86 4.0.1 has the same problem. The following patch solves it for
4.0.1 (relative to .../xc/include):

--- Xarch.h     Sat Jun 17 11:40:56 2000
+++ /home/marcel/Xarch.h        Tue Oct 24 15:15:58 2000
@@ -49,9 +49,7 @@
 #endif
 #endif
 #elif defined(CSRG_BASED)
-#if defined(__NetBSD__) || defined(__OpenBSD__)
 #include <sys/types.h>
-#endif
 #include <machine/endian.h>
 #elif defined(linux)
 #if defined __STRICT_ANSI__


I'm going to build 3.3.6 anyway, because 4.0.1 coredumps on my new
notebook, so I'll try to make a patch as well. If someone can make a PR
out of this thread, then we're all happy; especially jmz.

-- 
Marcel Moolenaar
  mail: [EMAIL PROTECTED] / [EMAIL PROTECTED]
  tel:  (408) 447-4222


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to