summaryrefslogtreecommitdiff
path: root/ftparchive
diff options
context:
space:
mode:
authorJaywalker <jwilliams@nsllc.com>2018-02-06 23:51:41 -0600
committerSam Bingner <sam@bingner.com>2019-08-18 12:07:26 -1000
commitba7b518ea23473b2ae42e397218d35cbce3af645 (patch)
tree05a1ee780fea9a7b4586326a0695e90f4bb7e49f /ftparchive
parent5ab68bbd1aca5b9b3cf23f88d60eebbf84d38e7c (diff)
Added required patches
Diffstat (limited to 'ftparchive')
-rw-r--r--ftparchive/byhash.cc4
-rw-r--r--ftparchive/cachedb.cc1
2 files changed, 5 insertions, 0 deletions
diff --git a/ftparchive/byhash.cc b/ftparchive/byhash.cc
index b24f6158e..5af0ef163 100644
--- a/ftparchive/byhash.cc
+++ b/ftparchive/byhash.cc
@@ -18,6 +18,10 @@
#include <unistd.h>
#include "byhash.h"
+#ifdef __APPLE__
+#define st_mtim st_mtimespec
+#endif
+
#include <apt-pkg/fileutl.h>
#include <apt-pkg/hashes.h>
diff --git a/ftparchive/cachedb.cc b/ftparchive/cachedb.cc
index 1890c28d0..8496f44c1 100644
--- a/ftparchive/cachedb.cc
+++ b/ftparchive/cachedb.cc
@@ -21,6 +21,7 @@
#include <apt-pkg/sha1.h>
#include <apt-pkg/sha2.h>
#include <apt-pkg/strutl.h>
+#include <apt-pkg/missing.h>
#include <ctype.h>
#include <netinet/in.h> // htonl, etc