summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-07-03 10:56:08 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-07-03 10:56:08 +0200
commit9bbea50ceaf3c6defdec9971bcbac5f7c419e94d (patch)
tree9d41037bc71f1ee70582b5765b32020b9d8cd55e /main.c
parent324894cf2960d91e1c2363ba17ac9efbd4ba1263 (diff)
downloadaports-cache-9bbea50ceaf3c6defdec9971bcbac5f7c419e94d.tar.bz2
aports-cache-9bbea50ceaf3c6defdec9971bcbac5f7c419e94d.tar.xz
fix build on macos
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
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) {