summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2006-12-05 16:06:31 +0000
committerSteve Hay <SteveHay@planit.com>2006-12-05 16:06:31 +0000
commit27bdbd07da4037be18a7347ab1c0d4093e037413 (patch)
tree5f7eef3a9467da1f2faff9940f59f86de8b22e98
parent785a26d510947a2b97507d7acf9b8c13bd59b310 (diff)
downloadperl-27bdbd07da4037be18a7347ab1c0d4093e037413.tar.gz
Extend d_pseudofork to Win32-land and set it when appropriate
(namely, when we have USE_ITHREADS and PERL_IMPLICIT_SYSTEM) p4raw-id: //depot/perl@29469
-rw-r--r--win32/config.bc1
-rw-r--r--win32/config.gc1
-rw-r--r--win32/config.vc1
-rw-r--r--win32/config.vc641
-rw-r--r--win32/config_H.bc6
-rw-r--r--win32/config_H.gc6
-rw-r--r--win32/config_H.vc6
-rw-r--r--win32/config_H.vc646
-rw-r--r--win32/config_sh.PL4
9 files changed, 32 insertions, 0 deletions
diff --git a/win32/config.bc b/win32/config.bc
index 4e892e9af4..f87e399a81 100644
--- a/win32/config.bc
+++ b/win32/config.bc
@@ -333,6 +333,7 @@ d_poll='undef'
d_portable='define'
d_printf_format_null='undef'
d_procselfexe='undef'
+d_pseudofork='undef'
d_pthread_atfork='undef'
d_pthread_attr_setscope='undef'
d_pthread_yield='undef'
diff --git a/win32/config.gc b/win32/config.gc
index 2652139d43..72afe61bcf 100644
--- a/win32/config.gc
+++ b/win32/config.gc
@@ -333,6 +333,7 @@ d_poll='undef'
d_portable='define'
d_printf_format_null='undef'
d_procselfexe='undef'
+d_pseudofork='undef'
d_pthread_atfork='undef'
d_pthread_attr_setscope='undef'
d_pthread_yield='undef'
diff --git a/win32/config.vc b/win32/config.vc
index ecae562c2a..5339125612 100644
--- a/win32/config.vc
+++ b/win32/config.vc
@@ -333,6 +333,7 @@ d_poll='undef'
d_portable='define'
d_printf_format_null='undef'
d_procselfexe='undef'
+d_pseudofork='undef'
d_pthread_atfork='undef'
d_pthread_attr_setscope='undef'
d_pthread_yield='undef'
diff --git a/win32/config.vc64 b/win32/config.vc64
index 43d4041dfb..06025559fc 100644
--- a/win32/config.vc64
+++ b/win32/config.vc64
@@ -333,6 +333,7 @@ d_poll='undef'
d_portable='define'
d_printf_format_null='undef'
d_procselfexe='undef'
+d_pseudofork='undef'
d_pthread_atfork='undef'
d_pthread_attr_setscope='undef'
d_pthread_yield='undef'
diff --git a/win32/config_H.bc b/win32/config_H.bc
index fab75f2a78..3a759074e4 100644
--- a/win32/config_H.bc
+++ b/win32/config_H.bc
@@ -3274,6 +3274,12 @@
*/
/*#define HAS_VFORK /**/
+/* HAS_PSEUDOFORK:
+ * This symbol, if defined, indicates that an emulation of the
+ * fork routine is available.
+ */
+/*#define HAS_PSEUDOFORK /**/
+
/* Signal_t:
* This symbol's value is either "void" or "int", corresponding to the
* appropriate return type of a signal handler. Thus, you can declare
diff --git a/win32/config_H.gc b/win32/config_H.gc
index e872524c26..0fdff1895e 100644
--- a/win32/config_H.gc
+++ b/win32/config_H.gc
@@ -3290,6 +3290,12 @@
*/
/*#define HAS_VFORK /**/
+/* HAS_PSEUDOFORK:
+ * This symbol, if defined, indicates that an emulation of the
+ * fork routine is available.
+ */
+/*#define HAS_PSEUDOFORK /**/
+
/* Signal_t:
* This symbol's value is either "void" or "int", corresponding to the
* appropriate return type of a signal handler. Thus, you can declare
diff --git a/win32/config_H.vc b/win32/config_H.vc
index 9a6872fa94..c85f0aa57d 100644
--- a/win32/config_H.vc
+++ b/win32/config_H.vc
@@ -3286,6 +3286,12 @@
*/
/*#define HAS_VFORK /**/
+/* HAS_PSEUDOFORK:
+ * This symbol, if defined, indicates that an emulation of the
+ * fork routine is available.
+ */
+/*#define HAS_PSEUDOFORK /**/
+
/* Signal_t:
* This symbol's value is either "void" or "int", corresponding to the
* appropriate return type of a signal handler. Thus, you can declare
diff --git a/win32/config_H.vc64 b/win32/config_H.vc64
index 44c47ddcbd..b5d708c6cf 100644
--- a/win32/config_H.vc64
+++ b/win32/config_H.vc64
@@ -3274,6 +3274,12 @@
*/
/*#define HAS_VFORK /**/
+/* HAS_PSEUDOFORK:
+ * This symbol, if defined, indicates that an emulation of the
+ * fork routine is available.
+ */
+/*#define HAS_PSEUDOFORK /**/
+
/* Signal_t:
* This symbol's value is either "void" or "int", corresponding to the
* appropriate return type of a signal handler. Thus, you can declare
diff --git a/win32/config_sh.PL b/win32/config_sh.PL
index 1d9a831839..3f819fe1da 100644
--- a/win32/config_sh.PL
+++ b/win32/config_sh.PL
@@ -109,6 +109,10 @@ if ($opt{uselargefiles} ne 'define') {
$opt{lseektype} = 'off_t';
}
+if ($opt{useithreads} eq 'define' && $opt{ccflags} =~ / -DPERL_IMPLICIT_SYS/) {
+ $opt{d_pseudofork} = 'define';
+}
+
while (<>) {
s/~([\w_]+)~/$opt{$1}/g;
if (/^([\w_]+)=(.*)$/) {