Unbreak Helgrind on Linux following recent Darwin hackery.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10626 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/helgrind/hg_intercepts.c b/helgrind/hg_intercepts.c
index 38b00de..8cb9452 100644
--- a/helgrind/hg_intercepts.c
+++ b/helgrind/hg_intercepts.c
@@ -208,6 +208,9 @@
 // darwin: pthread_create
 // darwin: pthread_create_suspended_np (trapped)
 //
+/* ensure this has its own frame, so as to make it more distinguishable
+   in suppressions */
+__attribute__((noinline))
 static int pthread_create_WRK(pthread_t *thread, const pthread_attr_t *attr,
                               void *(*start) (void *), void *arg)
 {
@@ -1400,6 +1403,7 @@
 /*----------------------------------------------------------------*/
 
 #include <semaphore.h>
+#include <fcntl.h>       /* O_CREAT */
 
 #define TRACE_SEM_FNS 0