summaryrefslogtreecommitdiff
path: root/libgomp/config/linux/sem.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgomp/config/linux/sem.c')
-rw-r--r--libgomp/config/linux/sem.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libgomp/config/linux/sem.c b/libgomp/config/linux/sem.c
index 798e3f1f2c0..5615bc580ee 100644
--- a/libgomp/config/linux/sem.c
+++ b/libgomp/config/linux/sem.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2005, 2008 Free Software Foundation, Inc.
Contributed by Richard Henderson <rth@redhat.com>.
This file is part of the GNU OpenMP Library (libgomp).
@@ -29,8 +29,7 @@
mechanism for libgomp. This type is private to the library. This
implementation uses atomic instructions and the futex syscall. */
-#include "libgomp.h"
-#include "futex.h"
+#include "wait.h"
void
@@ -44,7 +43,7 @@ gomp_sem_wait_slow (gomp_sem_t *sem)
if (__sync_bool_compare_and_swap (sem, val, val - 1))
return;
}
- futex_wait (sem, -1);
+ do_wait (sem, -1);
}
}