summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--aports-cache.c3
-rw-r--r--main.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/aports-cache.c b/aports-cache.c
index f185e7f..303239a 100644
--- a/aports-cache.c
+++ b/aports-cache.c
@@ -20,6 +20,9 @@
#define debug_printf(args...)
#endif
+#if defined(__APPLE__)
+#define st_mtim st_mtimespec
+#endif
static int spawn_shell_pipe(char *const argv[], pid_t *pid, int outfd)
{
diff --git a/main.c b/main.c
index 5af6663..c3a4203 100644
--- a/main.c
+++ b/main.c
@@ -10,6 +10,8 @@
#include "aports-cache.h"
+static char *program_invocation_name;
+
static void usage(int exitcode)
{
printf("usage %s [OPTS] DIR\n"
@@ -40,6 +42,8 @@ int main(int argc, char *argv[])
int dirfd, rc;
char *shell_argv[] = {"/bin/sh", NULL};
+ program_invocation_name = argv[0];
+
while ((c = getopt_long(argc, argv, "fs:v", opts, &i)) != -1) {
switch(c) {