aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2018-02-26 20:56:33 -0500
committerTheodore Ts'o <tytso@mit.edu>2018-02-26 20:56:33 -0500
commit220c826f236fd45633d44927f6431d4b58667d01 (patch)
tree8577bc073eb911909db2b838283f5bc2771d67cb
parentc19b18f84b67681da7f0b778d25830af67a888f3 (diff)
downloade2fsprogs-220c826f236fd45633d44927f6431d4b58667d01.tar.gz
remove AOSP's lib/config.h and update util/android_config.h
While synchronizing with the AOSP e2fsprogs tree, lib/config.h was accidentally checked in. In the upstream repository, the official copy of lib/config.h for Android should be stored in util/android_config.h, since lib/config.h will confuse Unix builds. This means that when synchronizing with the AOSP tree, changes lib/config.h need to be reflected in util/android_config.h Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--lib/config.h77
-rw-r--r--util/android_config.h7
2 files changed, 7 insertions, 77 deletions
diff --git a/lib/config.h b/lib/config.h
deleted file mode 100644
index 029f7da70..000000000
--- a/lib/config.h
+++ /dev/null
@@ -1,77 +0,0 @@
-#ifndef __APPLE__
-#define HAVE_MALLOC_H 1
-#endif
-
-#define ROOT_SYSCONFDIR "/etc"
-
-#define ENABLE_LIBSPARSE 1
-
-#define DISABLE_BACKTRACE 1
-#define HAVE_DIRENT_H 1
-#define HAVE_ERRNO_H 1
-#define HAVE_GETOPT_H 1
-#define HAVE_GETPWUID_R 1
-#define HAVE_INTPTR_T 1
-#define HAVE_INTTYPES_H 1
-#ifdef __linux__
-#define HAVE_LSEEK64 1
-#define HAVE_LSEEK64_PROTOTYPE 1
-#endif
-#define HAVE_MMAP 1
-#ifdef __linux__
-#define HAVE_MNTENT_H 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
-#define HAVE_STRDUP 1
-#define HAVE_STRINGS_H 1
-#define HAVE_STRNLEN 1
-#define HAVE_STRPTIME 1
-#define HAVE_SYSCONF 1
-#define HAVE_TYPE_SSIZE_T 1
-#define HAVE_UNISTD_H 1
-#define HAVE_UTIME_H 1
-
-#define HAVE_SYS_STAT_H 1
-#define HAVE_SYS_TIME_H 1
-#define HAVE_SYS_TYPES_H 1
-
-#if defined(_WIN32)
-# define HAVE_LINUX_TYPES_H 1
-# define HAVE_WINSOCK_H 1
-# define HAVE_SYS_SYSMACROS_H 1
-#endif
-#if defined(__APPLE__) || defined(__linux__)
-# define HAVE_FCNTL 1
-# define HAVE_FSYNC 1
-# define HAVE_GETPAGESIZE 1
-# define HAVE_NET_IF_H 1
-# define HAVE_NETINET_IN_H 1
-# define HAVE_PREAD 1
-# define HAVE_PWRITE 1
-# define HAVE_POSIX_MEMALIGN 1
-# define HAVE_SYS_IOCTL_H 1
-# define HAVE_SYS_MMAN_H 1
-# define HAVE_SYS_MOUNT_H 1
-# define HAVE_SYS_PARAM_H 1
-# define HAVE_SYS_RESOURCE_H 1
-# define HAVE_SYS_SELECT_H 1
-# define HAVE_SYS_WAIT_H 1
-#endif
-#if defined(__linux__)
-# define HAVE_EXT2_IOCTLS 1
-# define HAVE_FALLOCATE 1
-# define HAVE_LINUX_FD_H 1
-# define HAVE_LINUX_TYPES_H 1
-# define HAVE_LSEEK64 1
-# define HAVE_LSEEK64_PROTOTYPE 1
-# define HAVE_PREAD64 1
-# define HAVE_PWRITE64 1
-# define HAVE_SYS_PRCTL_H 1
-# define HAVE_SYS_SYSMACROS_H 1
-#endif
diff --git a/util/android_config.h b/util/android_config.h
index e6b25fa53..5655c3baf 100644
--- a/util/android_config.h
+++ b/util/android_config.h
@@ -13,7 +13,14 @@
#define HAVE_GETPWUID_R 1
#define HAVE_INTPTR_T 1
#define HAVE_INTTYPES_H 1
+#ifdef __linux__
+#define HAVE_LSEEK64 1
+#define HAVE_LSEEK64_PROTOTYPE 1
+#endif
#define HAVE_MMAP 1
+#ifdef __linux__
+#define HAVE_MNTENT_H 1
+#endif
#define HAVE_SETJMP_H 1
#ifdef __linux__
#define HAVE_SETMNTENT 1