Fix build on -CURRENT

This commit is contained in:
Xin LI 2007-09-24 11:56:45 +00:00
parent 56b1707931
commit aff323cd1e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=200042
2 changed files with 14 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= Time-Object
PORTVERSION= 1.00
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Time

View file

@ -0,0 +1,13 @@
--- ./Object.xs.orig 2001-10-22 17:48:04.000000000 +0800
+++ ./Object.xs 2007-09-10 11:07:31.866215125 +0800
@@ -42,6 +42,10 @@
# define init_tm(ptm)
#endif
+#ifdef mini_mktime
+#undef mini_mktime
+#endif
+
/*
* mini_mktime - normalise struct tm values without the localtime()
* semantics (and overhead) of mktime().