Skip to content

Commit

Permalink
Workaround for glibc 2.36 sys/mount.h
Browse files Browse the repository at this point in the history
Avoid including sys/mount.h which isn't compatible with linux headers.

Signed-off-by: Konstantin Khlebnikov <[email protected]>
Link: https://sourceware.org/git/?p=glibc.git;a=commit;h=774058d72942249f71d74e7f2b639f77184160a6
Closes: #50
  • Loading branch information
koct9i committed Aug 13, 2022
1 parent eb7f417 commit d771a20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ioping.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@

#ifdef __linux__
# include <sys/ioctl.h>
# include <sys/mount.h>
# include <sys/sysmacros.h>
# include <sys/syscall.h>
# define HAVE_CLOCK_GETTIME
Expand All @@ -68,13 +67,14 @@
# define HAVE_STATVFS
# define MAX_RW_COUNT 0x7ffff000 /* 2G - 4K */

#undef RWF_NOWAIT
# undef RWF_NOWAIT
# include <linux/fs.h>
# include <linux/aio_abi.h>
# ifndef RWF_NOWAIT
# define aio_rw_flags aio_reserved1
# endif
#undef RWF_NOWAIT

# undef RWF_NOWAIT
# include <sys/uio.h>
# ifdef RWF_NOWAIT
# define HAVE_LINUX_PREADV2
Expand Down

0 comments on commit d771a20

Please sign in to comment.