It fixes a known iusse whose details are described at [1] and more
generally it guarantees that Valgrind is properly compiled for ulibc.
[1] https://www.mail-archive.com/valgrind-users@lists.sourceforge.net/msg05295.html
Suggested-by Michael Trimarchi <michael@amarulasolutions.com>
Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
AC_CHECK_HEADER([features.h])
if test x$ac_cv_header_features_h = xyes; then
+ AC_DEFINE([HAVE_HEADER_FEATURES_H], 1,
+ [Define to 1 if you have the `features.h' header.])
rm -f conftest.$ac_ext
cat <<_ACEOF >conftest.$ac_ext
#include <features.h>
#endif
+#ifdef HAVE_HEADER_FEATURES_H
+#include <features.h>
+#endif
+
#undef LZO_HAVE_CONFIG_H
#include "minilzo.h"
#include "pub_core_debuginfo.h" // Needed for pub_core_redir.h
#include "pub_core_redir.h" // For VG_NOTIFY_ON_LOAD
+#ifdef HAVE_HEADER_FEATURES_H
+#include <features.h>
+#endif
+
#if defined(VGO_linux) || defined(VGO_solaris) || defined(VGO_freebsd)
/* ---------------------------------------------------------------------