summaryrefslogtreecommitdiff
path: root/src/backend/port/posix_sema.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/port/posix_sema.c')
-rw-r--r--src/backend/port/posix_sema.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/port/posix_sema.c b/src/backend/port/posix_sema.c
index 1dd02f8def6..2c32421e8d7 100644
--- a/src/backend/port/posix_sema.c
+++ b/src/backend/port/posix_sema.c
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/posix_sema.c,v 1.1 2002/05/05 00:03:28 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/posix_sema.c,v 1.2 2002/05/05 01:03:26 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -21,6 +21,8 @@
#include <signal.h>
#include <unistd.h>
+#include "miscadmin.h"
+#include "storage/ipc.h"
#include "storage/pg_sema.h"
@@ -70,7 +72,7 @@ PosixSemaphoreCreate(void)
mySem = sem_open(semname, O_CREAT | O_EXCL,
(mode_t) IPCProtection, (unsigned) 1);
- if (mySem != SEM_FAILED)
+ if (mySem != (sem_t *) SEM_FAILED)
break;
/* Loop if error indicates a collision */