Skip to content

Commit 1278e2d

Browse files
author
Steve Hay
committed
Declare MP_vtbl_env and MP_vtbl_envelem as 'extern' to fix linker errors on OSX/Darwin
Patch by Michael Schout <[email protected]>. git-svn-id: https://svn.apache.org/repos/asf/perl/modperl/trunk@1763583 13f79535-47bb-0310-9956-ffa450edef68
1 parent 634a0d9 commit 1278e2d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Changes

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Also refer to the Apache::Test changes log file, at Apache-Test/Changes
1010

1111
=over 3
1212

13+
Declare MP_vtbl_env and MP_vtbl_envelem as 'extern' to fix linker errors on
14+
OSX/Darwin. [Michael Schout <[email protected]>]
15+
1316
=item 2.0.10-rc1
1417

1518
Automatically select the appropriate c89 option when modperl is being

src/modules/perl/modperl_env.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ void modperl_env_init(pTHX);
6262

6363
void modperl_env_unload(pTHX);
6464

65-
MGVTBL MP_vtbl_env;
66-
MGVTBL MP_vtbl_envelem;
65+
extern MGVTBL MP_vtbl_env;
66+
extern MGVTBL MP_vtbl_envelem;
6767

6868
#endif /* MODPERL_ENV_H */
6969

0 commit comments

Comments
 (0)