$OpenBSD: patch-opennxApp_cpp,v 1.7 2014/09/11 21:57:00 jasper Exp $

wxConfigBase does not support long long.

--- opennxApp.cpp.orig	Mon Nov 25 17:08:17 2013
+++ opennxApp.cpp	Thu Sep 11 23:43:08 2014
@@ -580,7 +580,7 @@ opennxApp::preInit()
         tmp = findExecutable(wxT("cupsd"));
         if (tmp.IsEmpty()) {
             const wxChar* candidates[] = {
-                wxT("/sbin/cupsd"), wxT("/usr/sbin/cupsd"), wxT("/usr/local/sbin/cupsd"),
+                wxT("/sbin/cupsd"), wxT("/usr/sbin/cupsd"), wxT("${LOCALBASE}/sbin/cupsd"),
                 NULL
             };
             int i;
@@ -759,9 +759,9 @@ void opennxApp::checkNxSmartCardSupport()
 #endif
     if (!fn.FileExists())
         return;
-    time_t last_mtime;
+    long last_mtime;
     long last_size;
-    time_t mtime = fn.GetModificationTime().GetTicks();
+    long mtime = (long)fn.GetModificationTime().GetTicks();
     long size = fn.GetSize().ToULong();
     wxConfigBase::Get()->Read(wxT("Config/NxSshStamp"), &last_mtime, 0);
     wxConfigBase::Get()->Read(wxT("Config/NxSshSize"), &last_size, 0);
