X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=indirect.xs;h=67eea50401675cbaa32932dde88970c9b99dc725;hp=3f5a8cc7783a7d380dbc6beeb67c54cbe72103a2;hb=2635de8af7a889878b35ebed184d2f7b3c9c4ac0;hpb=40f70c31fb7b062366bd46139b577fa477de4c7a diff --git a/indirect.xs b/indirect.xs index 3f5a8cc..67eea50 100644 --- a/indirect.xs +++ b/indirect.xs @@ -95,6 +95,11 @@ /* ... Thread safety and multiplicity ...................................... */ +/* Safe unless stated otherwise in Makefile.PL */ +#ifndef I_FORKSAFE +# define I_FORKSAFE 1 +#endif + #ifndef I_MULTIPLICITY # if defined(MULTIPLICITY) || defined(PERL_IMPLICIT_CONTEXT) # define I_MULTIPLICITY 1 @@ -857,6 +862,7 @@ BOOT: stash = gv_stashpvn(__PACKAGE__, __PACKAGE_LEN__, 1); newCONSTSUB(stash, "I_THREADSAFE", newSVuv(I_THREADSAFE)); + newCONSTSUB(stash, "I_FORKSAFE", newSVuv(I_FORKSAFE)); } indirect_setup();