summaryrefslogtreecommitdiff
path: root/cad/kicad/patches/patch-eeschema_netform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cad/kicad/patches/patch-eeschema_netform.cpp')
-rw-r--r--cad/kicad/patches/patch-eeschema_netform.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/cad/kicad/patches/patch-eeschema_netform.cpp b/cad/kicad/patches/patch-eeschema_netform.cpp
new file mode 100644
index 00000000000..139a13140a9
--- /dev/null
+++ b/cad/kicad/patches/patch-eeschema_netform.cpp
@@ -0,0 +1,24 @@
+$NetBSD: patch-eeschema_netform.cpp,v 1.1.1.1 2014/02/17 20:38:59 bouyer Exp $
+64bit time_t fix
+Reported upstream as bug id 1280901
+
+--- eeschema/netform.cpp.orig 2014-02-15 15:35:29.000000000 +0100
++++ eeschema/netform.cpp 2014-02-15 15:48:58.000000000 +0100
+@@ -1046,7 +1046,7 @@
+ xsheetpath->AddAttribute( sNames, path->PathHumanReadable() );
+ xsheetpath->AddAttribute( sTStamps, path->Path() );
+
+- timeStamp.Printf( sTSFmt, comp->GetTimeStamp() );
++ timeStamp.Printf( sTSFmt, (u_long)comp->GetTimeStamp() );
+ xcomp->AddChild( node( sTStamp, timeStamp ) );
+ }
+ }
+@@ -1134,7 +1134,7 @@
+ }
+
+ ret |= fprintf( out, "\n$BeginComponent\n" );
+- ret |= fprintf( out, "TimeStamp=%8.8lX\n", comp->m_TimeStamp );
++ ret |= fprintf( out, "TimeStamp=%8.8lX\n", (u_long)comp->m_TimeStamp );
+ ret |= fprintf( out, "Footprint=%s\n", TO_UTF8( footprint ) );
+
+ field = wxT( "Reference=" ) + comp->GetRef( path ) + wxT( "\n" );