diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-07-13 13:05:15 +0200 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2016-07-13 13:05:15 +0200 |
commit | 53d8dd809966862eef3368713fd5989bc854be53 (patch) | |
tree | 5f66832d9296b55574f74b40f9925ed7c4592e53 /config/Config-build.in | |
parent | e8c405b2048410f4c0fbc5e8a793bc6706e0e40e (diff) | |
download | master-187ad058-53d8dd809966862eef3368713fd5989bc854be53.tar.gz master-187ad058-53d8dd809966862eef3368713fd5989bc854be53.tar.bz2 master-187ad058-53d8dd809966862eef3368713fd5989bc854be53.zip |
e2fsprogs: fix build on OS X systems
On OS X systems, the compilation of e2fsprogs fails at subst.c due to a
missing sys/stat.h include:
subst.c:333:14: error: variable has incomplete type 'struct stat'
struct stat stbuf;
^
subst.c:333:9: note: forward declaration of 'struct stat'
struct stat stbuf;
^
subst.c:392:8: warning: implicit declaration of function 'fstat' is invalid in C99
[-Wimplicit-function-declaration]
if (fstat(fd, &stbuf) == 0) {
^
subst.c:438:12: warning: implicit declaration of function 'fchmod' is invalid in C99
[-Wimplicit-function-declaration]
(void) fchmod(ofd, 0444);
^
2 warnings and 1 error generated.
make[3]: *** [subst.o] Error 1
Declare the nescessary HAVE_SYS_STAT_H macro to include the required header in
order to avoid the undeclared stat structure.
Tested-By: David Thornley <david.thornley@touchstargroup.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'config/Config-build.in')
0 files changed, 0 insertions, 0 deletions