]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/mics/sha1.c: Include string.h unconditionally.
authorOliver Kurth <okurth@vmware.com>
Wed, 1 Apr 2020 18:31:36 +0000 (11:31 -0700)
committerOliver Kurth <okurth@vmware.com>
Wed, 1 Apr 2020 18:31:36 +0000 (11:31 -0700)
string.h is part of POSIX, lets include it unconditionally

open-vm-tools/lib/misc/sha1.c

index 2dc55fa4882ad47e23a2a6fb5060cbace5a2576a..2103b937bbd7af94fc78f593453ad893c1ae3548 100644 (file)
  *    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"