summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrinivas%netscape.com <devnull@localhost>1999-07-16 02:35:57 +0000
committersrinivas%netscape.com <devnull@localhost>1999-07-16 02:35:57 +0000
commitb67f2774b842a132b7b095d265a27a072e331f56 (patch)
tree02d474b17c855eb069fe5bac396fbb0bdb50e539
parentefd6710bdf5e9ff4b3b206f77050da04b1222176 (diff)
downloadnspr-hg-b67f2774b842a132b7b095d265a27a072e331f56.tar.gz
OpenVMS port; checkin for "Colin R. Blake" <colin@theblakes.com>.
-rw-r--r--config/OpenVMS.mk2
-rw-r--r--pr/src/md/unix/openvms.c25
2 files changed, 1 insertions, 26 deletions
diff --git a/config/OpenVMS.mk b/config/OpenVMS.mk
index ba822eac..2e5c6d55 100644
--- a/config/OpenVMS.mk
+++ b/config/OpenVMS.mk
@@ -34,7 +34,7 @@ RANLIB = /bin/true
CPU_ARCH_TAG = _$(CPU_ARCH)
-OS_CFLAGS = -DVMS
+OS_CFLAGS = -DVMS -DGENERIC_PTHREAD_REDEFINES
# The command to build a shared library in POSIX on OpenVMS.
MKSHLIB = vmsld $(OPTIMIZER)
diff --git a/pr/src/md/unix/openvms.c b/pr/src/md/unix/openvms.c
index e1c73ca6..3face4ea 100644
--- a/pr/src/md/unix/openvms.c
+++ b/pr/src/md/unix/openvms.c
@@ -189,28 +189,3 @@ int thread_resume(PRThread *thr_id) {
}
-#ifdef AS_IS
-/*
-** These are here because of the problems we have when
-** compiling AS_IS. After much trying to fix this problem
-** with macro definitions in _pth.h, I finally gave up
-** and put these jackets here. So now these two calls both
-** map onto their lowercase version, and the lowercase
-** version here just calls the uppercase version.
-*/
-
-#undef PTHREAD_MUTEX_INIT
-#undef PTHREAD_COND_INIT
-
-int pthread_mutex_init (
- pthread_mutex_t *mutex,
- const pthread_mutexattr_t *attr) {
- return PTHREAD_MUTEX_INIT(mutex,attr);
-}
-
-int pthread_cond_init (
- pthread_cond_t *cond,
- const pthread_condattr_t *attr){
- return PTHREAD_COND_INIT (cond,attr);
-}
-#endif