mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
Move the include of linux/fs.h before the include of sys/un.h as the
latter includes string.h on some older systems which then causes problems when linux/fs.h includes linux/string.h due to it turning various string functions into pre-processor macros. This was the problem behind bug #87820 which actually had nothing to do with gcc 2.95 and everything to do with the glibc and kernel headers that the system had installed. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2639
This commit is contained in:
parent
9a416ac766
commit
19bd50ea16
@ -41,6 +41,7 @@
|
||||
/* ugly hack to avoid that kernel headers redefine stuff from sys/time.h */
|
||||
#define _LINUX_TIME_H
|
||||
#endif
|
||||
#include <linux/fs.h> /* for filing system ioctls */
|
||||
#include <linux/net.h> /* for the SYS_* constants */
|
||||
#include <sys/resource.h> /* for struct rlimit */
|
||||
#include <linux/shm.h> /* for struct shmid_ds & struct ipc_perm */
|
||||
@ -65,7 +66,6 @@
|
||||
#include <linux/timex.h> /* for adjtimex */
|
||||
#include <linux/hdreg.h> /* for hard drive ioctls */
|
||||
#include <linux/netlink.h>/* Some systems need this for linux/fs.h */
|
||||
#include <linux/fs.h> /* for filing system ioctls */
|
||||
#ifdef HAVE_LINUX_FB_H
|
||||
#include <linux/fb.h> /* for fb_* structs */
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user