Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 2006 10:14:15 +0100 (CET)
From:      Sven Berkvens-Matthijsse <sven@ilse.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/94596: [PATCH] emulators/bochs does not compile on FreeBSD 4.x
Message-ID:  <200603170914.k2H9EFbM094775@serv7.ilse.net>
Resent-Message-ID: <200603170920.k2H9KLCR051189@freefall.freebsd.org>

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

>Number:         94596
>Category:       ports
>Synopsis:       [PATCH] emulators/bochs does not compile on FreeBSD 4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 17 09:20:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Sven Berkvens-Matthijsse
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
ilse media BV
>Environment:
System: FreeBSD serv7.ilse.net 4.10-STABLE FreeBSD 4.10-STABLE #23: Wed Aug 4 15:18:52 CEST 2004 root@tango.ilse.net:/usr/obj/usr/src/sys/BAROQUE i386


	
>Description:
	The port emulators/bochs does not compile under FreeBSD 4.x due to
	the missing <stdint.h> header file.
>How-To-Repeat:
	Try to install the emulators/bochs port on FreeBSD 4.x.
>Fix:
	Replace the patch file "files/patch-iodev-eth_vde.cc" with the
	following contents (will work on any FreeBSD version):

--- iodev/eth_vde.cc.orig	Sat Dec 10 19:37:35 2005
+++ iodev/eth_vde.cc	Fri Mar 17 10:05:45 2006
@@ -41,18 +41,24 @@
 #include <sys/poll.h>
 #include <sys/time.h>
 #include <sys/resource.h>
-#include <asm/types.h>
 #include <sys/socket.h>
 #include <sys/uio.h>
 #include <sys/wait.h>
 #include <sys/un.h>
+#if defined(__linux__)
+#include <asm/types.h>
 #include <linux/netlink.h>
 #include <linux/if.h>
+#elif BX_HAVE_NET_IF_H
+#include <net/if.h>
+#endif
 #include <assert.h>
 #include <fcntl.h>
 #include <errno.h>
 #include <unistd.h>
+#if !defined(__FreeBSD__) || __FreeBSD__ >= 50000
 #include <stdint.h>
+#endif
 
 #define SWITCH_MAGIC 0xfeedface
 

>Release-Note:
>Audit-Trail:
>Unformatted:



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