summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-04-22 13:09:21 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-04-22 13:09:21 +0000
commit6cfe8af5837ee4b149d08cdc2afce032abee3494 (patch)
tree96c669c208f8fdc03db28a8f45d79db55056c299
parent11f62a1cbe1259089dfe510dfc5a027a0ad1cbac (diff)
downloadperl-6cfe8af5837ee4b149d08cdc2afce032abee3494.tar.gz
z/OS: changes for building threaded from "Brian De Pradine"
<PRADINE@uk.ibm.com>. p4raw-id: //depot/perl@19306
-rw-r--r--Makefile.SH5
-rw-r--r--hints/os390.sh3
-rw-r--r--thread.h6
-rw-r--r--util.c2
4 files changed, 14 insertions, 2 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 9b1b7f8f78..d9d60888f8 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -1223,6 +1223,11 @@ os390|posix-bc)
-e 's/y\.tab/perly/g' perly.c >perly.tmp && mv perly.tmp perly.c
xxx="$xxx perly.c"
fi
+ case "$osname:$usethreads" in
+ os390:define)
+ sed -e 's@^extern int yychar, yyerrflag;@/* extern int yychar, yyerrflag; */@' perly.c > perly.tmp && mv perly.tmp perly.c
+ ;;
+ esac
if cmp -s y.tab.h perly.h; then
rm -f y.tab.h
else
diff --git a/hints/os390.sh b/hints/os390.sh
index 02f75eae66..422600fe13 100644
--- a/hints/os390.sh
+++ b/hints/os390.sh
@@ -131,6 +131,9 @@ esac
case "$i_systime" in
'') i_systime='define' ;;
esac
+case "$d_pthread_atfork" in
+'') d_pthread_atfork='undef' ;;
+esac
# (from aix.sh)
# uname -m output is too specific and not appropriate here
diff --git a/thread.h b/thread.h
index bd4b91052d..3f7b2df540 100644
--- a/thread.h
+++ b/thread.h
@@ -273,7 +273,11 @@
#ifdef HAS_PTHREAD_UNCHECKED_GETSPECIFIC_NP
# define PTHREAD_GETSPECIFIC(key) pthread_unchecked_getspecific_np(key)
#else
-# define PTHREAD_GETSPECIFIC(key) pthread_getspecific(key)
+# ifdef OEMVS
+# define PTHREAD_GETSPECIFIC(key) pthread_getspecific_d8_np(key)
+# else
+# define PTHREAD_GETSPECIFIC(key) pthread_getspecific(key)
+# endif
#endif
#ifndef PERL_GET_CONTEXT
diff --git a/util.c b/util.c
index 5e63d114b8..ab1d6dc213 100644
--- a/util.c
+++ b/util.c
@@ -3683,7 +3683,7 @@ Perl_scan_vstring(pTHX_ char *s, SV *sv)
}
#ifdef EBCDIC
if (rev > 0x7FFFFFFF)
- Perl_croak(aTHX "In EBCDIC the v-string components cannot exceed 2147483647");
+ Perl_croak(aTHX_ "In EBCDIC the v-string components cannot exceed 2147483647");
#endif
/* Append native character for the rev point */
tmpend = uvchr_to_utf8(tmpbuf, rev);