aboutsummaryrefslogtreecommitdiff
path: root/pm-fmtdb.c
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2024-01-01 13:28:48 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2024-01-01 13:28:48 -0500
commit236b17c038967cb4c761c5bec39d37dca360adea (patch)
treeeee926f2f86624782e6f4a2903d6b76234af76cd /pm-fmtdb.c
parenta43600011a3ee977a10fdc863e5b79c272a7b5bd (diff)
downloadpm-236b17c038967cb4c761c5bec39d37dca360adea.tar.gz
pm-236b17c038967cb4c761c5bec39d37dca360adea.tar.xz
Add support for MacOS
Diffstat (limited to 'pm-fmtdb.c')
-rw-r--r--pm-fmtdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pm-fmtdb.c b/pm-fmtdb.c
index 2683112..9989e24 100644
--- a/pm-fmtdb.c
+++ b/pm-fmtdb.c
@@ -26,6 +26,10 @@
#include <fcntl.h>
#include <unistd.h>
+#if __APPLE__
+ #include "compat/reallocarray.c"
+#endif
+
#define TIME_FMT_CREATED "%H:%M:%S %m.%d.%y"
#define TIME_FMT_UPDATED "%m.%d.%y"