* configure.in: Check whether we need to prototype strerror.

* server.h: Optionally prototype strerror.
	* gdbreplay.c (perror_with_name): Use strerror.
	* linux-low.c (linux_attach_lwp): Use strerror.
	* utils.c (perror_with_name): Use strerror.
	* config.in, configure: Regenerated.
This commit is contained in:
Daniel Jacobowitz
2003-06-29 04:01:39 +00:00
parent 7cfbef4774
commit 43d5792ce1
8 changed files with 104 additions and 39 deletions

View File

@@ -34,6 +34,12 @@
#include <string.h>
#endif
#ifdef NEED_DECLARATION_STRERROR
#ifndef strerror
extern char *strerror (int); /* X3.159-1989 4.11.6.2 */
#endif
#endif
#ifndef ATTR_NORETURN
#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7))
#define ATTR_NORETURN __attribute__ ((noreturn))