aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlufia <lufia@lufia.org>2019-08-29 01:11:47 +0900
committerDaniel Stenberg <daniel@haxx.se>2019-08-29 19:25:09 +0200
commit4a90c5b82e21821496ef1afb5210a13f2564fcac (patch)
tree64f04c2879ba70a34283a74aedf48eeb405f4ae5
parent05856dae9cbaff2ecb6f69cabeeb35594a900dad (diff)
curl: fix include conditions
-rw-r--r--src/tool_help.c2
-rw-r--r--src/tool_operate.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/tool_help.c b/src/tool_help.c
index cb0afef56..271439053 100644
--- a/src/tool_help.c
+++ b/src/tool_help.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
#include "tool_setup.h"
-#ifdef HAVE_STRCASECMP
+#if defined(HAVE_STRCASECMP) && defined(HAVE_STRINGS_H)
#include <strings.h>
#endif
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 87d3ab89c..9b5225853 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -29,6 +29,10 @@
# include <locale.h>
#endif
+#ifdef HAVE_SYS_SELECT_H
+# include <sys/select.h>
+#endif
+
#ifdef __VMS
# include <fabdef.h>
#endif