* configure.ac: Remove AC_CHECK_DECLS check for memmem.
* server.h (memmem): Remove declaration.
* config.in: Regenerate.
* configure: Regenerate.
+2012-04-19 Pedro Alves <palves@redhat.com>
+
+ * configure.ac: Remove AC_CHECK_DECLS check for memmem.
+ * server.h (memmem): Remove declaration.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+
2012-04-19 Yao Qi <yao@codesourcery.com>
* Makefile.in (SFILES): Add common/vec.c.
you don't. */
#undef HAVE_DECL_ADDR_NO_RANDOMIZE
-/* Define to 1 if you have the declaration of `memmem', and to 0 if you don't.
- */
-#undef HAVE_DECL_MEMMEM
-
/* Define to 1 if you have the declaration of `perror', and to 0 if you don't.
*/
#undef HAVE_DECL_PERROR
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_PERROR $ac_have_decl
_ACEOF
-ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
-if test "x$ac_cv_have_decl_memmem" = x""yes; then :
- ac_have_decl=1
-else
- ac_have_decl=0
-fi
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_MEMMEM $ac_have_decl
-_ACEOF
ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
ac_have_decl=1
[AC_MSG_RESULT(no)])
fi
-AC_CHECK_DECLS([strerror, perror, memmem, vasprintf, vsnprintf])
+AC_CHECK_DECLS([strerror, perror, vasprintf, vsnprintf])
AC_CHECK_TYPES(socklen_t, [], [],
[#include <sys/types.h>
#endif
#endif
-#if !HAVE_DECL_MEMMEM
-extern void *memmem (const void *, size_t , const void *, size_t);
-#endif
-
#if !HAVE_DECL_VASPRINTF
extern int vasprintf(char **strp, const char *fmt, va_list ap);
#endif