| 1 | package Apache::forks::BerkeleyDB; | ||
| 2 | |||
| 3 | $VERSION = 0.03; | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | use Carp (); | ||
| 8 | use vars qw(@ISA); | ||
| 9 | |||
| 10 | use constant BASE => 'forks::BerkeleyDB'; | ||
| 11 | |||
| 12 | BEGIN { | ||
| 13 | @ISA = qw(Apache::forks::Common); | ||
| 14 | require Apache::forks::Common; | ||
| 15 | |||
| 16 | { | ||
| 17 | no warnings 'redefine'; | ||
| 18 | *debug = *debug = \&Apache::forks::Common::debug; | ||
| 19 | *childinit = *childinit = \&Apache::forks::Common::childinit; | ||
| 20 | } | ||
| 21 | |||
| 22 | __PACKAGE__->_load_forks(); | ||
| 23 | } | ||
| 24 | |||
| 25 | |||
| 26 | package | ||
| 27 | Apache::forks::BerkeleyDB::shared; # hide from PAUSE | ||
| 28 | |||
| 29 | use vars qw(@ISA); | ||
| 30 | BEGIN { | ||
| 31 | @ISA = qw(Apache::forks::Common); | ||
| 32 | } | ||
| 33 | use constant BASE => 'forks::BerkeleyDB::shared'; | ||
| 34 | |||
| 35 | sub import { | ||
| 36 | shift; | ||
| 37 | _forks_shared->import(@_); | ||
| 38 | } | ||
| 39 | |||
| 40 | 1; | ||
| 41 | |||
| 42 | __END__ |