2012-04-19 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Thu, 19 Apr 2012 10:23:03 +0000 (10:23 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 19 Apr 2012 10:23:03 +0000 (10:23 +0000)
* configure.ac: Remove AC_CHECK_DECLS check for memmem.
* server.h (memmem): Remove declaration.
* config.in: Regenerate.
* configure: Regenerate.

gdb/gdbserver/ChangeLog
gdb/gdbserver/config.in
gdb/gdbserver/configure
gdb/gdbserver/configure.ac
gdb/gdbserver/server.h

index 372c556ed459c0b0b7507e70893f157469bb116f..454cab3ffc2d66d4a22ef8f5cb53dd42d32ddce2 100644 (file)
@@ -1,3 +1,10 @@
+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.
index ffa4afb67bffa9c7f9186b29c73ef6919c42a9ef..26742ac12bdc8efe22f942fe6af2435dfe5833d5 100644 (file)
    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
index 25d1812e9a4adb1b021d4a6d9ea4af660722bad9..cdd54f19bc172cd9616c6aedd88eb494a7ffdf0d 100755 (executable)
@@ -5139,16 +5139,6 @@ fi
 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
index ac8223a2906afc5f4731f7a26177c3a7611e8d23..96a5f2d2fda7f9a370048cc08d6abb1f9ab616d6 100644 (file)
@@ -167,7 +167,7 @@ AC_TRY_LINK([
   [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>
index a419c36677c44b9869ef2c7e362e66d3d129530e..49f94d03f260d2c01da97ed62a4df9f4528788d0 100644 (file)
@@ -59,10 +59,6 @@ extern void perror (const char *);
 #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