Re: -=Bug=- [message #10118 is a reply to message #10115] |
Thu, 08 February 2007 15:15 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
|
The following patch should help. BTW which distro do you use? I thought it is a Gentoo-specific problem...
From: Kir Kolyshkin <kir@openvz.org>
Date: Wed, 17 Jan 2007 13:53:22 +0000 (+0300)
Subject: Fix ndsend compile with Gentoo linux-headers-2.6.19.2-r2
X-Git-Url: http://git.openvz.org/?p=vzctl;a=commitdiff;h=248b85a47a0e5a d4c93140eaabc23c936821dd26
Fix ndsend compile with Gentoo linux-headers-2.6.19.2-r2
The problem is abovementioned linux-headers change linux/if.h file in a way
that it does no more include linux/types.h, thus unknown types like __u8 etc.
We add this include explicitly and fix the problem.
---
--- a/src/ndsend.c
+++ b/src/ndsend.c
@@ -17,6 +17,7 @@
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#include <linux/types.h>
#include <linux/if.h>
#include <netinet/icmp6.h>
Kir Kolyshkin
[Updated on: Thu, 08 February 2007 15:18] Report message to a moderator
|
|
|