|
From: Tom H. <th...@cy...> - 2004-09-01 07:31:22
|
CVS commit by thughes: 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. M +1 -1 vg_unsafe.h 1.34 --- valgrind/coregrind/vg_unsafe.h #1.33:1.34 @@ -42,4 +42,5 @@ #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 */ @@ -66,5 +67,4 @@ #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 */ |