2012-09-29 10:39:22 +02:00
|
|
|
$NetBSD: patch-swig_plist.i,v 1.2 2012/09/29 08:39:23 dholland Exp $
|
2012-01-01 15:39:33 +01:00
|
|
|
|
2012-09-29 10:39:22 +02:00
|
|
|
Fix build on platforms where tv_sec isn't time_t.
|
|
|
|
|
|
|
|
--- swig/plist.i.orig 2012-01-11 14:29:30.000000000 +0000
|
2012-01-01 15:39:33 +01:00
|
|
|
+++ swig/plist.i
|
2012-09-29 10:39:22 +02:00
|
|
|
@@ -35,7 +35,8 @@
|
2012-01-01 15:39:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
%typemap(out) timeval {
|
|
|
|
- struct tm* t = gmtime ( &$1.tv_sec );
|
2012-09-29 10:39:22 +02:00
|
|
|
+ time_t mytime = $1.tv_sec;
|
|
|
|
+ struct tm* t = gmtime ( &mytime );
|
2012-01-01 15:39:33 +01:00
|
|
|
if (t)
|
|
|
|
{
|
|
|
|
PyDateTime_IMPORT;
|