--- a/m4/ltp-taskstats.m4
+++ b/m4/ltp-taskstats.m4
@@ -28,11 +28,13 @@
 dnl in commit 016ae219 in July 2008
 dnl
 
-AC_DEFUN([_LTP_CHECK_TASKSTATS_FREEPAGES],
-[dnl
-AC_CHECK_MEMBERS([struct taskstats.freepages_count, struct taskstats.nvcsw, struct taskstats.read_bytes],[],[],[dnl
+AC_DEFUN([_LTP_CHECK_TASKSTATS_FREEPAGES],[
+AC_CHECK_HEADERS(linux/taskstats.h,[
+	LINUX_TASKSTATS_HEADER=yes
+	AC_CHECK_MEMBERS([struct taskstats.freepages_count, struct taskstats.nvcsw, struct taskstats.read_bytes],[],[],[dnl
+#include <asm/types.h>
 #include <linux/types.h>
 #include <linux/taskstats.h>
-])
-]dnl
-)dnl
+]) dnl AC_CHECK_MEMBERS
+]) dnl AC_CHECK_HEADERS
+]) dnl _LTP_CHECK_TASKSTATS_FREEPAGES