Fix build of libical with gcc-2.95
OK jasper@, landry@
This commit is contained in:
parent
56b1c7be9b
commit
374b1072d1
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.6 2011/03/18 12:23:45 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.7 2011/06/20 18:15:29 sebastia Exp $
|
||||
|
||||
COMMENT= implementation of basic iCAL protocols
|
||||
|
||||
DISTNAME= libical-0.44
|
||||
REVISION= 2
|
||||
REVISION= 3
|
||||
|
||||
SHARED_LIBS += ical 1.0 # .44.0
|
||||
SHARED_LIBS += icalss 1.0 # .44.0
|
||||
|
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-scripts_mkderivedproperties_pl,v 1.1 2011/06/20 18:15:29 sebastia Exp $
|
||||
|
||||
fix for gcc-2.95
|
||||
|
||||
--- scripts/mkderivedproperties.pl.orig Mon Jun 20 18:55:19 2011
|
||||
+++ scripts/mkderivedproperties.pl Mon Jun 20 18:55:42 2011
|
||||
@@ -239,6 +239,7 @@ $type icalproperty_get_${lc}(const icalproperty* prop)
|
||||
* it doesnot work automatically like in the other functions
|
||||
* like icalproperty_get_dtstart().
|
||||
*/
|
||||
+ {
|
||||
struct icaltimetype itt =
|
||||
icalvalue_get_datetime(icalproperty_get_value(prop));
|
||||
icalparameter* param = icalproperty_get_first_parameter(prop,
|
||||
@@ -249,6 +250,7 @@ $type icalproperty_get_${lc}(const icalproperty* prop)
|
||||
icaltime_set_timezone(&itt, zone);
|
||||
}
|
||||
return itt;
|
||||
+ }
|
||||
#else
|
||||
return icalvalue_get_datetime(icalproperty_get_value(prop));
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user