]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
WEXITSTATUS is defined in sys/wait.h
authorThierry Vignaud <thierry.vignaud@gmail.com>
Tue, 17 Jan 2012 19:32:48 +0000 (17:32 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 17 Jan 2012 19:33:07 +0000 (17:33 -0200)
Fix compiling with dietlibc:

../libkmod/libkmod-module.c:858:2: warning: implicit declaration of function 'WEXITSTATUS' [-Wimplicit-function-declaration]
../libkmod/libkmod-module.c:858:2: warning: nested extern declaration of 'WEXITSTATUS' [-Wnested-externs]
(...)
kmod-modprobe.c:(.text.command_do+0x157): undefined reference to `WEXITSTATUS'

libkmod/libkmod-module.c
tools/kmod-modprobe.c

index 47b1709f01cdf1e4ffe3c3df60751d2dfc3b21a7..983deef1d9da66b04d7dfca44668cfb85c5523a5 100644 (file)
@@ -33,6 +33,7 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <sys/mman.h>
+#include <sys/wait.h>
 #include <string.h>
 #include <fnmatch.h>
 
index 9d612ddaf74042cf8862a447838e31966ee5c059..4052d3b1face6831c61a1cb92f3f433bc0c926e2 100644 (file)
@@ -26,6 +26,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/utsname.h>
+#include <sys/wait.h>
 #include <unistd.h>
 #include <syslog.h>
 #include <limits.h>