mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 10:10:00 +00:00
configure.ac: Detect selinux/android.h
commit ef011a49f3c640c59c7e21c3816d01c039711c58 category: bugfix issue: #I6VAS0 CVE: NA Signed-off-by: DongSenhao <dongsenhao2@huawei.com> --------------------------------------- The selinux/android.h header file is available in Android but not in the Android NDK. Hence this patch that detects presence of that header file at configure time. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: dongsenhao <dongsenhao2@huawei.com>
This commit is contained in:
parent
89274e8c32
commit
20a09c8920
@ -108,6 +108,7 @@ AC_CHECK_HEADERS(m4_flatten([
|
||||
mntent.h
|
||||
pthread_time.h
|
||||
scsi/sg.h
|
||||
selinux/android.h
|
||||
selinux/selinux.h
|
||||
sparse/sparse.h
|
||||
stdlib.h
|
||||
|
@ -33,7 +33,7 @@ typedef void (*fs_config_f)(const char *path, int dir,
|
||||
#ifndef _WIN32
|
||||
static fs_config_f fs_config_func = NULL;
|
||||
|
||||
#ifdef WITH_ANDROID
|
||||
#ifdef HAVE_SELINUX_ANDROID_H
|
||||
#include <selinux/android.h>
|
||||
#include <private/android_filesystem_config.h>
|
||||
#include <private/canned_fs_config.h>
|
||||
@ -326,7 +326,7 @@ static int configure_files(void)
|
||||
#endif
|
||||
skip:
|
||||
#endif
|
||||
#ifdef WITH_ANDROID
|
||||
#ifdef HAVE_SELINUX_ANDROID_H
|
||||
/* Load the FS config */
|
||||
if (c.fs_config_file) {
|
||||
int ret = load_canned_fs_config(c.fs_config_file);
|
||||
|
@ -28,6 +28,7 @@
|
||||
#define HAVE_LLSEEK 1
|
||||
#define HAVE_LSEEK64 1
|
||||
#define HAVE_MEMSET 1
|
||||
#define HAVE_SELINUX_ANDROID_H 1
|
||||
#define HAVE_SETMNTENT 1
|
||||
#define HAVE_SPARSE_SPARSE_H 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user