#include <cstdlib>
#include <ctime>
#include <iostream>
+#include <features.h>
#include <pthread.h>
#include <signal.h>
#include <unistd.h>
+#include <string.h>
#include "../drd_clientreq.h"
#include <asm/unistd.h>
+#if !defined(__GLIBC_PREREQ)
+# error "This program requires __GLIBC_PREREQ (in /usr/include/features.h)"
+#endif
+
+#if __GLIBC_PREREQ(2,3)
#define VALGRIND_START_NEW_SEGMENT \
{ \
pthread_self(), 0, 0,0,0); \
}
-
static bool s_debug = false;
return 0;
}
+
+#else /* !__GLIBC_PREREQ(2,3) */
+
+int main(int argc, char** )
+{
+ std::cout << "program does not work on glibc < 2.3" << std::endl;
+ return 0;
+}
+
+#endif /* __GLIBC_PREREQ(2,3) */