iproute2/0001-build-resolve-compile-error-due-to-missing-include.patch

39 lines
1.2 KiB
Diff

From 8a204b39e28a195e34a6e59d360fce05853eec17 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Wed, 17 Apr 2013 08:44:46 +0200
Subject: [PATCH] build: resolve compile error due to missing include
Upstream: sent on Apr 17 08:53 +0200
I get a compilation error with linux-glibc-devel-2.6.32 (SLES 11 SP2):
ipnetns.c: In function 'netns_exec':
ipnetns.c:156: error: 'MS_SLAVE' undeclared (first use in this function)
ipnetns.c:156: error: (Each undeclared identifier is reported only once
ipnetns.c:156: error: for each function it appears in.)
ipnetns.c:156: error: 'MS_REC' undeclared (first use in this function)
ipnetns.c: In function 'netns_add':
ipnetns.c:372: error: 'MS_SHARED' undeclared (first use in this function)
ipnetns.c:372: error: 'MS_REC' undeclared (first use in this function)
make[1]: *** [ipnetns.o] Error 1
This patch fixes that.
---
ip/ipnetns.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ip/ipnetns.c b/ip/ipnetns.c
index b047b97..48b1ad5 100644
--- a/ip/ipnetns.c
+++ b/ip/ipnetns.c
@@ -14,6 +14,7 @@
#include <errno.h>
#include <unistd.h>
#include <ctype.h>
+#include <linux/fs.h>
#include "utils.h"
#include "ip_common.h"
--
1.8.2