From 2f19a7a4ccf0d1846739f19129dc9b37fd1e7735 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 21 Jul 2018 09:27:22 -0700 Subject: [PATCH] imagex: make sure we still use wgetopt_long_only() on Windows --- programs/imagex.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/programs/imagex.c b/programs/imagex.c index 781718e3..e69d74fd 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -46,11 +46,6 @@ # include #endif -/* NetBSD is missing getopt_long_only() but has getopt_long() */ -#ifndef HAVE_GETOPT_LONG_ONLY -# define getopt_long_only getopt_long -#endif - #define WIMLIB_COMPRESSION_TYPE_INVALID (-1) #ifdef __WIN32__ @@ -63,6 +58,10 @@ static inline void set_fd_to_binary_mode(int fd) { } +/* NetBSD is missing getopt_long_only() but has getopt_long() */ +#ifndef HAVE_GETOPT_LONG_ONLY +# define getopt_long_only getopt_long +#endif #endif /* !__WIN32 */ /* Don't confuse the user by presenting the mounting commands on Windows when -- 2.43.0