]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blobdiff - Types.xs
Introduce LT_FORKSAFE
[perl/modules/Lexical-Types.git] / Types.xs
index 27d5d435dde1c9650d9af67167d4325dba9f0eca..cf005cd34fd23c2e14f343950597da42925ef465 100644 (file)
--- a/Types.xs
+++ b/Types.xs
 
 /* ... Thread safety and multiplicity ...................................... */
 
+/* Safe unless stated otherwise in Makefile.PL */
+#ifndef LT_FORKSAFE
+# define LT_FORKSAFE 1
+#endif
+
 #ifndef LT_MULTIPLICITY
 # if defined(MULTIPLICITY) || defined(PERL_IMPLICIT_CONTEXT)
 #  define LT_MULTIPLICITY 1
@@ -833,6 +838,7 @@ BOOT:
 
   stash = gv_stashpvn(__PACKAGE__, __PACKAGE_LEN__, 1);
   newCONSTSUB(stash, "LT_THREADSAFE", newSVuv(LT_THREADSAFE));
+  newCONSTSUB(stash, "LT_FORKSAFE",   newSVuv(LT_FORKSAFE));
  }
 
  lt_setup();