Revision: 402
http://vde.svn.sourceforge.net/vde/?rev=402&view=rev
Author: rd235
Date: 2010-03-07 13:45:30 +0000 (Sun, 07 Mar 2010)
Log Message:
-----------
slirpvde fix for freebsd machines (where __BYTE_ORDER is not defined)
Modified Paths:
--------------
trunk/vde-2/src/slirpvde/ip.h
trunk/vde-2/src/slirpvde/tcp.h
Modified: trunk/vde-2/src/slirpvde/ip.h
===================================================================
--- trunk/vde-2/src/slirpvde/ip.h 2009-10-17 21:29:00 UTC (rev 401)
+++ trunk/vde-2/src/slirpvde/ip.h 2010-03-07 13:45:30 UTC (rev 402)
@@ -37,6 +37,15 @@
#ifndef _IP_H_
#define _IP_H_
+#ifndef __BYTE_ORDER
+#if defined(VDE_DARWIN) || defined(VDE_FREEBSD)
+#include <machine/endian.h>
+#define __BYTE_ORDER _BYTE_ORDER
+#define __BIG_ENDIAN __BIG_ENDIAN
+#define __LITTLE_ENDIAN _LITTLE_ENDIAN
+#endif
+#endif
+
#if __BYTE_ORDER == __BIG_ENDIAN
# ifndef NTOHL
# define NTOHL(d)
Modified: trunk/vde-2/src/slirpvde/tcp.h
===================================================================
--- trunk/vde-2/src/slirpvde/tcp.h 2009-10-17 21:29:00 UTC (rev 401)
+++ trunk/vde-2/src/slirpvde/tcp.h 2010-03-07 13:45:30 UTC (rev 402)
@@ -37,6 +37,15 @@
#ifndef _TCP_H_
#define _TCP_H_
+#ifndef __BYTE_ORDER
+#if defined(VDE_DARWIN) || defined(VDE_FREEBSD)
+#include <machine/endian.h>
+#define __BYTE_ORDER _BYTE_ORDER
+#define __BIG_ENDIAN __BIG_ENDIAN
+#define __LITTLE_ENDIAN _LITTLE_ENDIAN
+#endif
+#endif
+
typedef u_int32_t tcp_seq;
#define PR_SLOWHZ 2 /* 2 slow timeouts per second
(approx) */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
vde-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vde-users