From a772248e1a2f0886d8479b2f14392f020ea8c6e0 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 2 Apr 2020 01:07:35 +0200 Subject: 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 --- lib/common/comp_opt.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/common/comp_opt.c') 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 #include -#include #include +#ifdef HAVE_GETSUBOPT +#include +#else +#include "compat.h" +#endif + typedef struct { const char *name; sqfs_u16 flag; -- cgit v1.2.3