aboutsummaryrefslogtreecommitdiff
path: root/tar/tar2sqfs.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <goliath@infraroot.at>2020-04-06 23:07:51 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-04-08 03:14:59 +0200
commitc81b424d967203cc2d68e819dc330439e8880764 (patch)
treed075931c780eeddf9a2dc1d8339ef686d60abac3 /tar/tar2sqfs.c
parent4ea1c1e14d8ee67b2e7a6a4665747ccd87fec479 (diff)
Add msvc projects for utility programsfeature/goliath/msvc
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tar/tar2sqfs.c')
-rw-r--r--tar/tar2sqfs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tar/tar2sqfs.c b/tar/tar2sqfs.c
index 6186930..d730af6 100644
--- a/tar/tar2sqfs.c
+++ b/tar/tar2sqfs.c
@@ -10,7 +10,6 @@
#include "tar.h"
#include <stdlib.h>
-#include <getopt.h>
#include <string.h>
#include <stdio.h>
#include <fcntl.h>
@@ -19,6 +18,10 @@
#include <io.h>
#endif
+#ifdef HAVE_GETOPT_LONG
+#include <getopt.h>
+#endif
+
static struct option long_opts[] = {
{ "root-becomes", required_argument, NULL, 'r' },
{ "compressor", required_argument, NULL, 'c' },