]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Don't break the build on unknown (to drd) platforms.
authorJulian Seward <jseward@acm.org>
Mon, 26 Nov 2007 06:03:05 +0000 (06:03 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 26 Nov 2007 06:03:05 +0000 (06:03 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7225

exp-drd/pthread_object_size.h

index 845eadf15a64f2f0d9c04ae2b717069c3f45d5a5..934014daa194931babfe10e3f2559b06e6da9b2c 100644 (file)
@@ -1,13 +1,15 @@
 // TO DO: replace the constants below by macro's #define'd during the configure
 // phase.
 
-#if defined(VGA_x86)
-#define PTHREAD_MUTEX_SIZE    24
-#define PTHREAD_COND_SIZE     48
-#elif defined(VGA_amd64)
-#define PTHREAD_MUTEX_SIZE    40
-#define PTHREAD_COND_SIZE     48
+#if defined(VGP_x86_linux)
+# define PTHREAD_MUTEX_SIZE    24
+# define PTHREAD_COND_SIZE     48
+#elif defined(VGP_amd64_linux)
+# define PTHREAD_MUTEX_SIZE    40
+# define PTHREAD_COND_SIZE     48
 #else
-#error Unknown platform
+# warning "Unknown platform for PTHREAD_{MUTEX,COND}_SIZE"
+# define PTHREAD_MUTEX_SIZE    32
+# define PTHREAD_COND_SIZE     32
 #endif
 #define PTHREAD_SPINLOCK_SIZE  4