diff options
author | Lucas De Marchi <lucas.de.marchi@gmail.com> | 2013-03-19 17:44:59 -0300 |
---|---|---|
committer | Lucas De Marchi <lucas.de.marchi@gmail.com> | 2013-03-19 17:52:30 -0300 |
commit | b66381385a950e9699ce27dd6f473bc6b37e1a6e (patch) | |
tree | 178d2226586f1ffc70a02bd46361bfe94dd7e255 | |
parent | d53abca3bef50c2e0983821347d5da37e0ec3478 (diff) | |
download | kmod-b66381385a950e9699ce27dd6f473bc6b37e1a6e.tar.gz |
libkmod-util: Add missing include file
Fix compilation issue with musl-libc:
CC libkmod/libkmod-list.lo
In file included from libkmod/libkmod-private.h:183:0,
from libkmod/libkmod-list.c:24:
libkmod/libkmod-util.h:33:45: warning: 'struct stat' declared inside parameter list [enabled by default]
libkmod/libkmod-util.h:33:45: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
-rw-r--r-- | libkmod/libkmod-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libkmod/libkmod-util.h b/libkmod/libkmod-util.h index 258184d..17f8801 100644 --- a/libkmod/libkmod-util.h +++ b/libkmod/libkmod-util.h @@ -5,6 +5,7 @@ #include <stdbool.h> #include <stdio.h> #include <sys/types.h> +#include <sys/stat.h> char *getline_wrapped(FILE *fp, unsigned int *linenum) __attribute__((nonnull(1))); |