Browse Source

COMP: Added missing headers. This partially addresses bug#3556.

Brad King 19 years ago
parent
commit
8a79d25927

+ 2 - 0
Source/kwsys/Registry.cxx

@@ -36,6 +36,8 @@
 
 #include <ctype.h> // for isspace
 #include <stdio.h>
+#include <string.h> /* strlen, strncpy */
+#include <stdlib.h> /* getenv */
 
 #ifdef _WIN32
 # include <windows.h>

+ 3 - 0
Source/kwsys/testCommandLineArguments.cxx

@@ -23,6 +23,9 @@
 # include "kwsys_ios_iostream.h.in"
 #endif
 
+#include <stddef.h> /* size_t */
+#include <string.h> /* strcmp */
+
 void* random_ptr = reinterpret_cast<void*>(0x123);
 
 int argument(const char* arg, const char* value, void* call_data)

+ 2 - 0
Source/kwsys/testCommandLineArguments1.cxx

@@ -23,6 +23,8 @@
 # include "kwsys_ios_iostream.h.in"
 #endif
 
+#include <string.h> /* strcmp */
+
 int main(int argc, char* argv[])
 {
   kwsys::CommandLineArguments arg;

+ 2 - 0
Source/kwsys/testSystemTools.cxx

@@ -29,6 +29,8 @@
 
 #include "testSystemTools.h"
 
+#include <string.h> /* strcmp */
+
 //----------------------------------------------------------------------------
 const char* toUnixPaths[][2] =
 {