Skip to content

Commit

Permalink
lapi: Remove HAVE_LINUX_FS_H
Browse files Browse the repository at this point in the history
Remove workaround for glibc bug fixed in glibc 2.37:

kraj/glibc@774058d

It's not needed any more (it was needed for some Fedora version only).

Link: https://lore.kernel.org/ltp/[email protected]/
Suggested-by: Li Wang <[email protected]>
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik committed Aug 21, 2024
1 parent c139240 commit 67da60d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ AC_CHECK_HEADERS_ONCE([ \
linux/cryptouser.h \
linux/close_range.h \
linux/dccp.h \
linux/fs.h \
linux/futex.h \
linux/genetlink.h \
linux/if_alg.h \
Expand Down
6 changes: 1 addition & 5 deletions include/lapi/ficlone.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
#define LAPI_FICLONE_H__

#include "config.h"

#ifdef HAVE_LINUX_FS_H
# include <linux/fs.h>
#endif

#include <linux/fs.h>
#include <stdint.h>

#ifndef HAVE_STRUCT_FILE_CLONE_RANGE
Expand Down
4 changes: 1 addition & 3 deletions include/lapi/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

#include "config.h"
#ifndef HAVE_MOUNT_SETATTR
# ifdef HAVE_LINUX_FS_H
# include <linux/fs.h>
# endif
# include <linux/fs.h>
#endif

#include <sys/user.h>
Expand Down

0 comments on commit 67da60d

Please sign in to comment.