]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Build fixes for AIX5.3.
authorJulian Seward <jseward@acm.org>
Tue, 6 May 2008 23:01:05 +0000 (23:01 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 6 May 2008 23:01:05 +0000 (23:01 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8013

exp-drd/tests/drd_bitmap_test.c
memcheck/tests/linux-timerfd-syscall.c

index 57fc2cd14128ebaac2e5f32b56045f144e588e86..3993afad36a43433ae713901d6b81cd2530de08f 100644 (file)
@@ -15,8 +15,14 @@ void* VG_(malloc)(SizeT nbytes)
 void  VG_(free)(void* p)
 { return free(p); }
 void  VG_(assert_fail)(Bool isCore, const Char* expr, const Char* file,
-                       Int line, const Char* fn, const HChar* format, ...)
-{ __assert_fail(expr, file, line, fn); abort(); }
+                       Int line, const Char* fn, const HChar* format, ...) {
+#if defined(__linux__)
+__assert_fail(expr, file, line, fn); abort(); 
+#else
+assert(0);
+#endif /* __linux__ */
+}
+
 void* VG_(memset)(void *s, Int c, SizeT sz)
 { return memset(s, c, sz); }
 void* VG_(memcpy)(void *d, const void *s, SizeT sz)
@@ -46,7 +52,7 @@ struct { Addr address; SizeT size; BmAccessTypeT access_type; }
     {               0x0001ffffULL, 1, eLoad  },
     {               0x00ffffffULL, 1, eLoad  },
     { 0xfffffffeULL - ADDR0_COUNT, 1, eStore },
-#if defined(VGP_amd64_linux) || defined(VGP_ppc64_linux)
+#if defined(VGP_amd64_linux) || defined(VGP_ppc64_linux) || defined(VGP_ppc64_aix5)
     { 0xffffffffULL - ADDR0_COUNT, 1, eStore },
     {               0xffffffffULL, 1, eStore },
     {              0x100000000ULL, 1, eStore },
index dd321364f3d6dbc04c849285449def474ccf1111..b9694ec48724781c7ab898abe9f90fcaf82dad42 100644 (file)
@@ -298,3 +298,12 @@ int main(int ac, char **av)
 }
 
 #endif /* __linux__ */
+
+#if defined(_AIX)
+#include <stdio.h>
+int main(int ac, char **av)
+{
+   fprintf(stderr, "This test does not work on AIX5.\n");
+   return 0;
+}
+#endif /* _AIX */