]> wimlib.net Git - wimlib/blobdiff - programs/imagex.c
Fix building on NetBSD
[wimlib] / programs / imagex.c
index a10ac488fdfbc4bb66949fdeae18a3193f253890..781718e32fe82217a60c308b6b9c796c03f174a6 100644 (file)
 #  include <alloca.h>
 #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__