summaryrefslogtreecommitdiff
path: root/universal.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-10-24 05:32:17 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-10-24 05:32:17 -0700
commita9b7658f66b4773c3d3b573410a0bc5963f7e279 (patch)
tree29db08364cf49678d1e025f44299a5c43af17f24 /universal.c
parent41e70615a0bf7f35048f8163e68f1b9936509b9a (diff)
downloadperl-a9b7658f66b4773c3d3b573410a0bc5963f7e279.tar.gz
Make the details array in universal.c static
Otherwise we can have linking problems when a global ‘details’ symbol is defined elsewhere. (That happened to me with an XS module.)
Diffstat (limited to 'universal.c')
-rw-r--r--universal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/universal.c b/universal.c
index 305713fcba..85b91d0295 100644
--- a/universal.c
+++ b/universal.c
@@ -1353,7 +1353,7 @@ struct xsub_details {
const char *proto;
};
-const struct xsub_details details[] = {
+static const struct xsub_details details[] = {
{"UNIVERSAL::isa", XS_UNIVERSAL_isa, NULL},
{"UNIVERSAL::can", XS_UNIVERSAL_can, NULL},
{"UNIVERSAL::DOES", XS_UNIVERSAL_DOES, NULL},