forked from Imagelibrary/binutils-gdb
* 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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user