From 3329592a7b45d1d82d299c7dbac627d54997ce16 Mon Sep 17 00:00:00 2001 From: espie Date: Mon, 6 Jan 2003 02:19:56 +0000 Subject: [PATCH] fix linker warnings, by not redeclaring static variables with extern. --- ...ical_src_libical_icalderivedparameter_c_in | 21 +++++++++++++++++++ ...bical_src_libical_icalderivedproperty_c_in | 21 +++++++++++++++++++ ...-libical_src_libical_icalderivedvalue_c_in | 12 +++++++++++ 3 files changed, 54 insertions(+) create mode 100644 x11/kde/pim3/patches/patch-libical_src_libical_icalderivedparameter_c_in create mode 100644 x11/kde/pim3/patches/patch-libical_src_libical_icalderivedproperty_c_in create mode 100644 x11/kde/pim3/patches/patch-libical_src_libical_icalderivedvalue_c_in diff --git a/x11/kde/pim3/patches/patch-libical_src_libical_icalderivedparameter_c_in b/x11/kde/pim3/patches/patch-libical_src_libical_icalderivedparameter_c_in new file mode 100644 index 00000000000..681aefe5e72 --- /dev/null +++ b/x11/kde/pim3/patches/patch-libical_src_libical_icalderivedparameter_c_in @@ -0,0 +1,21 @@ +$OpenBSD: patch-libical_src_libical_icalderivedparameter_c_in,v 1.1 2003/01/06 02:19:56 espie Exp $ +--- libical/src/libical/icalderivedparameter.c.in.orig Tue Dec 31 15:02:20 2002 ++++ libical/src/libical/icalderivedparameter.c.in Tue Dec 31 15:03:04 2002 +@@ -55,7 +55,7 @@ struct icalparameter_kind_map { + + }; + +-extern struct icalparameter_kind_map parameter_map[]; ++static struct icalparameter_kind_map parameter_map[]; + + + const char* icalparameter_kind_to_string(icalparameter_kind kind) +@@ -129,7 +129,7 @@ struct icalparameter_map { + }; + + +-extern struct icalparameter_map icalparameter_map[]; ++static struct icalparameter_map icalparameter_map[]; + + + const char* icalparameter_enum_to_string(int e) diff --git a/x11/kde/pim3/patches/patch-libical_src_libical_icalderivedproperty_c_in b/x11/kde/pim3/patches/patch-libical_src_libical_icalderivedproperty_c_in new file mode 100644 index 00000000000..524aa8b0bed --- /dev/null +++ b/x11/kde/pim3/patches/patch-libical_src_libical_icalderivedproperty_c_in @@ -0,0 +1,21 @@ +$OpenBSD: patch-libical_src_libical_icalderivedproperty_c_in,v 1.1 2003/01/06 02:19:56 espie Exp $ +--- libical/src/libical/icalderivedproperty.c.in.orig Tue Dec 31 15:03:24 2002 ++++ libical/src/libical/icalderivedproperty.c.in Tue Dec 31 15:04:08 2002 +@@ -59,7 +59,7 @@ struct icalproperty_map { + + }; + +-extern struct icalproperty_map property_map[]; ++static struct icalproperty_map property_map[]; + + const char* icalproperty_kind_to_string(icalproperty_kind kind) + { +@@ -139,7 +139,7 @@ struct icalproperty_enum_map { + const char* str; + }; + +-extern struct icalproperty_enum_map enum_map[]; ++static struct icalproperty_enum_map enum_map[]; + + + const char* icalproperty_enum_to_string(int e) diff --git a/x11/kde/pim3/patches/patch-libical_src_libical_icalderivedvalue_c_in b/x11/kde/pim3/patches/patch-libical_src_libical_icalderivedvalue_c_in new file mode 100644 index 00000000000..67eaf3d62e1 --- /dev/null +++ b/x11/kde/pim3/patches/patch-libical_src_libical_icalderivedvalue_c_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-libical_src_libical_icalderivedvalue_c_in,v 1.1 2003/01/06 02:19:56 espie Exp $ +--- libical/src/libical/icalderivedvalue.c.in.orig Tue Dec 31 15:04:41 2002 ++++ libical/src/libical/icalderivedvalue.c.in Tue Dec 31 15:04:45 2002 +@@ -60,7 +60,7 @@ struct icalvalue_kind_map { + char name[20]; + }; + +-extern struct icalvalue_kind_map value_map[]; ++static struct icalvalue_kind_map value_map[]; + + const char* icalvalue_kind_to_string(icalvalue_kind kind) + {