summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/common.c3
-rw-r--r--src/common.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index 51dd68b..6c2b613 100644
--- a/src/common.c
+++ b/src/common.c
@@ -26,6 +26,7 @@
#include <string.h>
#include <errno.h>
#include <libgen.h>
+#include <time.h>
#include "common.h"
@@ -182,7 +183,7 @@ int read_file(const char* filename, void** data, size_t* size) {
}
void debug_plist(plist_t plist) {
- int size = 0;
+ uint32_t size = 0;
char* data = NULL;
plist_to_xml(plist, &data, &size);
info("%s", data);
diff --git a/src/common.h b/src/common.h
index af3d1f8..a634e6f 100644
--- a/src/common.h
+++ b/src/common.h
@@ -120,6 +120,7 @@ char *generate_guid();
#define sleep(x) Sleep(x*1000)
#endif
#else
+#include <sys/stat.h>
#define __mkdir(path, mode) mkdir(path, mode)
#define FMT_qu "%qu"
#endif