Skip to content

Commit 2701442

Browse files
committed
libsanitizer: cherry-pick 9cf1306 from upstream
9cf1306 [sanitizer] Remove #include <linux/fs.h> to resolve fsconfig_command/mount_attr conflict with glibc 2.36
1 parent 12a9b98 commit 2701442

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@
7373
#include <sys/vt.h>
7474
#include <linux/cdrom.h>
7575
#include <linux/fd.h>
76+
#if SANITIZER_ANDROID
7677
#include <linux/fs.h>
78+
#endif
7779
#include <linux/hdreg.h>
7880
#include <linux/input.h>
7981
#include <linux/ioctl.h>
@@ -869,10 +871,10 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
869871
unsigned IOCTL_EVIOCGPROP = IOCTL_NOT_PRESENT;
870872
unsigned IOCTL_EVIOCSKEYCODE_V2 = IOCTL_NOT_PRESENT;
871873
#endif
872-
unsigned IOCTL_FS_IOC_GETFLAGS = FS_IOC_GETFLAGS;
873-
unsigned IOCTL_FS_IOC_GETVERSION = FS_IOC_GETVERSION;
874-
unsigned IOCTL_FS_IOC_SETFLAGS = FS_IOC_SETFLAGS;
875-
unsigned IOCTL_FS_IOC_SETVERSION = FS_IOC_SETVERSION;
874+
unsigned IOCTL_FS_IOC_GETFLAGS = _IOR('f', 1, long);
875+
unsigned IOCTL_FS_IOC_GETVERSION = _IOR('v', 1, long);
876+
unsigned IOCTL_FS_IOC_SETFLAGS = _IOW('f', 2, long);
877+
unsigned IOCTL_FS_IOC_SETVERSION = _IOW('v', 2, long);
876878
unsigned IOCTL_GIO_CMAP = GIO_CMAP;
877879
unsigned IOCTL_GIO_FONT = GIO_FONT;
878880
unsigned IOCTL_GIO_UNIMAP = GIO_UNIMAP;

0 commit comments

Comments
 (0)