summaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2015-08-14 17:40:24 -0400
committerAllen Winter <allen.winter@kdab.com>2015-08-14 17:40:24 -0400
commit530d6478ede9e7d5f6511f96841f0678e91c6e3f (patch)
treec86b85b58f342eb364e1de48bb14f9f3334a0fd3 /config.h.cmake
parent69e26ef62078e7e57fa1875a580a4ad0b0f1e197 (diff)
downloadlibical-git-530d6478ede9e7d5f6511f96841f0678e91c6e3f.tar.gz
config.h.cmake - handle missing HAVE_GETOPT on Windows
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.h.cmake b/config.h.cmake
index 8461a3da..1ca8d3e6 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -355,8 +355,10 @@ typedef unsigned int wint_t;
#include <unistd.h>
#endif
#else
+#if !defined(_WIN32)
#error "No parse command-line function available"
#endif
+#endif
/* getpid - system function to get process identification */
#if defined(HAVE__GETPID)
@@ -543,4 +545,4 @@ typedef ssize_t IO_SSIZE_T;
#else
#define _unused(x) (void)x
#endif
-#endif \ No newline at end of file
+#endif