git-svn-id: svn://svn.valgrind.org/valgrind/trunk@248
------------------------------------------------------------------ */
-#define NULL ((void*)0)
+#if !defined(NULL)
+# define NULL ((void*)0)
+#endif
extern void VG_(exit)( Int status )
__attribute__ ((__noreturn__));
#include <asm/ioctls.h> /* for stuff for dealing with ioctl :( */
#include <sys/soundcard.h> /* for various soundcard ioctl constants :( */
-#include <linux/rtc.h> /* for RTC_* ioctls */
+
+#ifndef GLIBC_2_1
+# include <linux/rtc.h> /* for RTC_* ioctls */
+#endif
#include <termios.h>
#include <pty.h>
------------------------------------------------------------------ */
-#define NULL ((void*)0)
+#if !defined(NULL)
+# define NULL ((void*)0)
+#endif
extern void VG_(exit)( Int status )
__attribute__ ((__noreturn__));
break;
/* Real Time Clock (/dev/rtc) ioctls */
+# ifndef GLIBC_2_1
case RTC_UIE_ON:
case RTC_UIE_OFF:
case RTC_AIE_ON:
if(!VG_(is_kerror) && res == 0)
make_readable(arg3, sizeof(unsigned long));
break;
+# endif /* GLIBC_2_1 */
/* CD ROM stuff (??) */
case CDROMSUBCHNL:
#include <asm/ioctls.h> /* for stuff for dealing with ioctl :( */
#include <sys/soundcard.h> /* for various soundcard ioctl constants :( */
-#include <linux/rtc.h> /* for RTC_* ioctls */
+
+#ifndef GLIBC_2_1
+# include <linux/rtc.h> /* for RTC_* ioctls */
+#endif
#include <termios.h>
#include <pty.h>