summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity
diff options
context:
space:
mode:
authorEric BENARD <eric@eukrea.com>2013-12-18 18:27:39 +0100
committerPaul Eggleton <paul.eggleton@linux.intel.com>2014-01-08 22:26:26 +0000
commit3402bfac6b595c622e4590a8ff5eaaa854e2a2a3 (patch)
treea2c2ee1be0413aa4b7d9013ae7eb7bf9381caf93 /meta-networking/recipes-connectivity
parent6daf75e4e980b86d6e0a12513764044f7ea711be (diff)
downloadmeta-openembedded-3402bfac6b595c622e4590a8ff5eaaa854e2a2a3.tar.gz
inetutils: fix compile error when PATH_PROCNET_DEV is undefined
Signed-off-by: Eric Bénard <eric@eukrea.com>
Diffstat (limited to 'meta-networking/recipes-connectivity')
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.9-PATH_PROCNET_DEV.patch26
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb1
2 files changed, 27 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.9-PATH_PROCNET_DEV.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.9-PATH_PROCNET_DEV.patch
new file mode 100644
index 000000000..2592989a9
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.9-PATH_PROCNET_DEV.patch
@@ -0,0 +1,26 @@
1inetutils: define PATH_PROCNET_DEV if not already defined
2
3this prevents the following compilation error :
4system/linux.c:401:15: error: 'PATH_PROCNET_DEV' undeclared (first use in this function)
5
6this patch comes from :
7 http://repository.timesys.com/buildsources/i/inetutils/inetutils-1.9/
8
9Upstream-Status: Inappropriate [not author]
10
11Signed-of-by: Eric Bénard <eric@eukrea.com>
12---
13diff -Naur inetutils-1.9.orig/ifconfig/system/linux.c inetutils-1.9/ifconfig/system/linux.c
14--- inetutils-1.9.orig/ifconfig/system/linux.c 2012-01-04 16:31:36.000000000 -0500
15+++ inetutils-1.9/ifconfig/system/linux.c 2012-01-04 16:40:53.000000000 -0500
16@@ -49,6 +49,10 @@
17 #include "../ifconfig.h"
18
19
20+#ifndef PATH_PROCNET_DEV
21+ #define PATH_PROCNET_DEV "/proc/net/dev"
22+#endif
23+
24 /* ARPHRD stuff. */
25
26 static void
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb
index d12ad391d..97fc6a11f 100644
--- a/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb
@@ -20,6 +20,7 @@ SRC_URI = "${GNU_MIRROR}/inetutils/inetutils-${PV}.tar.gz \
20 file://rsh.xinetd.inetutils \ 20 file://rsh.xinetd.inetutils \
21 file://telnet.xinetd.inetutils \ 21 file://telnet.xinetd.inetutils \
22 file://tftpd.xinetd.inetutils \ 22 file://tftpd.xinetd.inetutils \
23 file://inetutils-1.9-PATH_PROCNET_DEV.patch \
23" 24"
24 25
25SRC_URI[md5sum] = "944f7196a2b3dba2d400e9088576000c" 26SRC_URI[md5sum] = "944f7196a2b3dba2d400e9088576000c"