File google-perftools-memcmp_from_string_h.patch of Package google-perftools

Index: google-perftools-0.98/src/maybe_threads.cc
===================================================================
--- google-perftools-0.98.orig/src/maybe_threads.cc
+++ google-perftools-0.98/src/maybe_threads.cc
@@ -47,6 +47,10 @@
 #include "maybe_threads.h"
 #include "base/basictypes.h"
 
+// We *do* however need string.h in order to get a definition of memcmp
+// used in perftools_pthread_once()
+#include <string.h>
+
 // __THROW is defined in glibc systems.  It means, counter-intuitively,
 // "This function will never throw an exception."  It's an optional
 // optimization tool, but we may need to use it to match glibc prototypes.
Index: google-perftools-0.98/src/base/logging.cc
===================================================================
--- google-perftools-0.98.orig/src/base/logging.cc
+++ google-perftools-0.98/src/base/logging.cc
@@ -31,6 +31,7 @@
 // This file just provides storage for FLAGS_verbose.
 
 #include "base/commandlineflags.h"
+#include <stdlib.h>
 
 DEFINE_int32(verbose, EnvToInt("PERFTOOLS_VERBOSE", 0),
              "Set to numbers >0 for more verbose output, or <0 for less.  "