mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-27 20:14:46 +08:00
Fix windows and mac build
malloc.h is not available on mac. mntent.h and setmntent are not available on windows. Test: cd external/e2fsprogs && mm Change-Id: I3bc1b80156d3659f4d81975626a71f58d39ee61a (cherry picked from commit 8ca6180b52349968daf601bd89e15491eb2f271f)
This commit is contained in:
parent
a3d753f36f
commit
43f927f7aa
@ -1,4 +1,6 @@
|
||||
#ifndef __APPLE__
|
||||
#define HAVE_MALLOC_H 1
|
||||
#endif
|
||||
|
||||
#define ROOT_SYSCONFDIR "/etc"
|
||||
|
||||
@ -20,7 +22,9 @@
|
||||
#define HAVE_LSEEK64_PROTOTYPE 1
|
||||
#endif
|
||||
#define HAVE_MMAP 1
|
||||
#ifdef __linux__
|
||||
#define HAVE_MNTENT_H 1
|
||||
#endif
|
||||
#define HAVE_NETINET_IN_H 1
|
||||
#define HAVE_NET_IF_H 1
|
||||
#define HAVE_POSIX_MEMALIGN 1
|
||||
@ -33,7 +37,9 @@
|
||||
#define HAVE_PWRITE64 1
|
||||
#endif
|
||||
#define HAVE_SETJMP_H 1
|
||||
#ifdef __linux__
|
||||
#define HAVE_SETMNTENT 1
|
||||
#endif
|
||||
#define HAVE_SNPRINTF 1
|
||||
#define HAVE_STDLIB_H 1
|
||||
#define HAVE_STRCASECMP 1
|
||||
|
Loading…
Reference in New Issue
Block a user