CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
e2fsprogs: updated to 1.42.13 and updated mandir
[crossrootfs.git] / inetutils / inetutils-1.9.1-pathprocnet.patch
1 inetutils: define PATH_PROCNET_DEV if not already defined
2
3 this prevents the following compilation error :
4 system/linux.c:401:15: error: 'PATH_PROCNET_DEV' undeclared (first use in this function)
5
6 this patch comes from :
7 http://repository.timesys.com/buildsources/i/inetutils/inetutils-1.9/
8
9 Upstream-Status: Inappropriate [not author]
10
11 Signed-of-by: Eric BĂ©nard <eric at eukrea.com>
12 ---
13 diff -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