string.h is part of POSIX, lets include it unconditionally
* test-esx -n misc/sha1.sh
*/
-#if defined(USERLEVEL) || defined(_WIN32)
-# include <string.h>
-# if defined(_WIN32)
-# include <memory.h>
-# endif
+#if defined(_WIN32)
+# include <memory.h>
#endif
#if defined(sun) && !defined(SOL9)
-#include <memory.h>
+# include <memory.h>
#endif
-#if defined(__FreeBSD__)
-# if defined(_KERNEL)
-# include <sys/libkern.h>
-# include <sys/systm.h>
-# else
-# include <string.h>
-# endif
-#endif
-
-#if defined(__APPLE__)
-# include <string.h>
+#if defined(__FreeBSD__) && defined(_KERNEL)
+# include <sys/libkern.h>
+# include <sys/systm.h>
#endif
+#include <string.h>
#include "vmware.h"
#include "sha1.h"
#include "vm_basic_asm.h"