vnet: Fix compilation on x86/64 which erroneously asserts
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 4 Dec 2007 10:10:23 +0000 (10:10 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 4 Dec 2007 10:10:23 +0000 (10:10 +0000)
__ARCH_WANT_SYS_SOCKETCALL.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/vnet/vnet-module/varp_socket.c

index 7b2ef9f93858910cacba8d0745fd2a45e3194425..9e49f3498f45c958d87da7a6f541af3344618156 100644 (file)
@@ -77,9 +77,10 @@ static inline _syscall3(int, fcntl,
  * Some architectures use socketcall() to multiplex the socket-related calls,
  * but others define individual syscalls instead.
  * Architectures using socketcall() define __ARCH_WANT_SYS_SOCKETCALL.
+ * NB. x86_64 architecture asserts __ARCH_WANT_SYS_SOCKETCALL in error.
  */
 
-#ifdef __ARCH_WANT_SYS_SOCKETCALL
+#if defined(__ARCH_WANT_SYS_SOCKETCALL) && !defined(__x86_64__)
 
 /* Define the socketcall() syscall.
  * Multiplexes all the socket-related calls.