$OpenBSD$
--- dwbem/dwbem.c.orig	Mon Sep  8 18:51:20 2014
+++ dwbem/dwbem.c	Mon Sep  8 18:50:42 2014
@@ -853,7 +853,7 @@ sync_meta(const char *output) 
             {
                 snprintf(buffer, sizeof(buffer), "%s/%s", m_system_dir, name);
                 if (stat(buffer, &st) != -1) 
-                    fprintf(file, "%s %lu\n", name, st.st_mtime);
+                    fprintf(file, "%s %lu\n", name, (long unsigned int)st.st_mtime);
             }
             g_dir_close(d);
             fclose(file);
