# Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h sys/statfs.h sys/time.h sys/endian.h endian.h termios.h unistd.h utime.h])
+AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h sys/statfs.h sys/time.h sys/endian.h endian.h termios.h unistd.h utime.h linux/fb.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
case CDROM_CLEAR_OPTIONS: /* 0x5321 */
break;
+#ifdef HAVE_LINUX_FB_H
case FBIOGET_VSCREENINFO: /* 0x4600 */
SYSCALL_TRACK( pre_mem_write,tid,
"ioctl(FBIOGET_VSCREENINFO)", arg3,
"ioctl(FBIOGET_FSCREENINFO)", arg3,
sizeof(struct fb_fix_screeninfo));
break;
+#endif
/* We don't have any specific information on it, so
try to do something reasonable based on direction and
case CDROM_CLEAR_OPTIONS: /* 0x5321 */
break;
+#ifdef HAVE_LINUX_FB_H
case FBIOGET_VSCREENINFO: //0x4600
if (res == 0)
VG_TRACK( post_mem_write,arg3, sizeof(struct fb_var_screeninfo));
if (res == 0)
VG_TRACK( post_mem_write,arg3, sizeof(struct fb_fix_screeninfo));
break;
+#endif
/* We don't have any specific information on it, so
try to do something reasonable based on direction and
#include <linux/cdrom.h> /* for cd-rom ioctls */
#include <signal.h> /* for siginfo_t */
#include <linux/timex.h> /* for adjtimex */
+#ifdef HAVE_LINUX_FB_H
#include <linux/fb.h> /* for fb_* structs */
+#endif
#define __USE_LARGEFILE64
#include <sys/stat.h> /* for struct stat */