biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / networking / inetutils / inetutils-1_9-PATH_PROCNET_DEV.patch
blob2592989a90a367fdf721d6f45adca7d01107f604
1 inetutils: define PATH_PROCNET_DEV if not already defined
3 this prevents the following compilation error :
4 system/linux.c:401:15: error: 'PATH_PROCNET_DEV' undeclared (first use in this function)
6 this patch comes from :
7 http://repository.timesys.com/buildsources/i/inetutils/inetutils-1.9/
9 Upstream-Status: Inappropriate [not author]
11 Signed-of-by: Eric BĂ©nard <eric@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"
20 +#ifndef PATH_PROCNET_DEV
21 + #define PATH_PROCNET_DEV "/proc/net/dev"
22 +#endif
24 /* ARPHRD stuff. */
26 static void