diff options
Diffstat (limited to 'tar/tar2sqfs.c')
-rw-r--r-- | tar/tar2sqfs.c | 5 |
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' }, |