diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-04-02 01:07:35 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-04-02 01:07:57 +0200 |
commit | a772248e1a2f0886d8479b2f14392f020ea8c6e0 (patch) | |
tree | 2890d5a6ae9c5ff120ae6c42bb044baf9e8f226c /lib/common/comp_opt.c | |
parent | 5de40ee8216c7a3ddb2bf88570f798c8ac4f40f8 (diff) |
Import the remaining utility files into VisualStudio project
- The libcommon print verion function requires the PACKAGE_NAME and
PACKAGE_VERSION defines. Those are added manually to the msvc stub
of config.h.
- Also, libcommon cannot directly include getopt.h
- libfstree needs to change the return type for getline
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common/comp_opt.c')
-rw-r--r-- | lib/common/comp_opt.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/common/comp_opt.c b/lib/common/comp_opt.c index 58a7a21..93ad1cc 100644 --- a/lib/common/comp_opt.c +++ b/lib/common/comp_opt.c @@ -8,9 +8,14 @@ #include <string.h> #include <stdlib.h> -#include <getopt.h> #include <ctype.h> +#ifdef HAVE_GETSUBOPT +#include <getopt.h> +#else +#include "compat.h" +#endif + typedef struct { const char *name; sqfs_u16 flag; |