From: Eric Biggers Date: Thu, 2 Feb 2023 22:42:19 +0000 (+0000) Subject: AOSP: Android: define HAVE_GETMNTINFO on macOS X-Git-Tag: v1.47.1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a54747af1389113bde7ebf326a16a27e506d747;p=thirdparty%2Fe2fsprogs.git AOSP: Android: define HAVE_GETMNTINFO on macOS macOS supports getmntinfo(), but not getmntent(). To match what the 'configure' script detects, define HAVE_GETMNTINFO to 1. This prevents the following warning: #warning "Can't use getmntent or getmntinfo to check for mounted filesystems!" Bug: 267448785 Change-Id: I3131563fc317fa9fef7745937ec2c4b09a1d29b0 From AOSP commit: bb6d46cc9770f4f15a5e52122a16f762c1bb567a --- diff --git a/util/android_config.h b/util/android_config.h index 90b8f8a8..c2288602 100644 --- a/util/android_config.h +++ b/util/android_config.h @@ -54,6 +54,9 @@ # define HAVE_SYS_SELECT_H 1 # define HAVE_SYS_WAIT_H 1 #endif +#ifdef __APPLE__ +# define HAVE_GETMNTINFO 1 +#endif #if defined(__linux__) # define HAVE_EXT2_IOCTLS 1 # define HAVE_FALLOCATE 1