Patchwork inetutils: fix compile error when PATH_PROCNET_DEV is undefined

login
register
mail settings
Submitter Eric BENARD
Date Dec. 18, 2013, 3:20 p.m.
Message ID <1387380000-20286-1-git-send-email-eric@eukrea.com>
Download mbox | patch
Permalink /patch/63521/
State Superseded, archived
Headers show

Comments

Eric BENARD - Dec. 18, 2013, 3:20 p.m.
patch taken from :
http://repository.timesys.com/buildsources/i/inetutils/inetutils-1.9/inetutils-1.9-PATH_PROCNET_DEV.patch

Signed-off-by: Eric BĂ©nard <eric@eukrea.com>
---
 .../inetutils-1.9.1/inetutils-1.9-PATH_PROCNET_DEV.patch   | 14 ++++++++++++++
 .../recipes-connectivity/inetutils/inetutils_1.9.1.bb      |  1 +
 2 files changed, 15 insertions(+)
 create mode 100644 meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.9-PATH_PROCNET_DEV.patch

Patch

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 0000000..54733be
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.9-PATH_PROCNET_DEV.patch
@@ -0,0 +1,14 @@ 
+diff -Naur inetutils-1.9.orig/ifconfig/system/linux.c inetutils-1.9/ifconfig/system/linux.c
+--- inetutils-1.9.orig/ifconfig/system/linux.c	2012-01-04 16:31:36.000000000 -0500
++++ inetutils-1.9/ifconfig/system/linux.c	2012-01-04 16:40:53.000000000 -0500
+@@ -49,6 +49,10 @@
+ #include "../ifconfig.h"
+ 
+ 
++#ifndef PATH_PROCNET_DEV
++  #define PATH_PROCNET_DEV "/proc/net/dev"
++#endif
++
+ /* ARPHRD stuff.  */
+ 
+ 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 d12ad39..97fc6a1 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 \
            file://rsh.xinetd.inetutils \
            file://telnet.xinetd.inetutils \
            file://tftpd.xinetd.inetutils \
+           file://inetutils-1.9-PATH_PROCNET_DEV.patch \
 "
 
 SRC_URI[md5sum] = "944f7196a2b3dba2d400e9088576000c"