X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fposix-hdep.c;h=fef5ec1ae872bbc5e032b1e2da93bb09c7a809c5;hb=863d01bde2725d009c45ab7e9ba1dbf3f5b923f8;hp=9bd3a9a07248b200656f3e7f869d37007291dcfc;hpb=0df8b4180acb4890d058c92753dafcd4ff0a87d1;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/posix-hdep.c b/gdb/posix-hdep.c index 9bd3a9a072..fef5ec1ae8 100644 --- a/gdb/posix-hdep.c +++ b/gdb/posix-hdep.c @@ -1,7 +1,6 @@ /* Host support routines for MinGW, for GDB, the GNU debugger. - Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 - Free Software Foundation, Inc. + Copyright (C) 2006-2015 Free Software Foundation, Inc. This file is part of GDB. @@ -21,30 +20,8 @@ #include "defs.h" #include "event-loop.h" -#include "gdb_string.h" - #include "gdb_select.h" -/* The strerror() function can return NULL for errno values that are - out of range. Provide a "safe" version that always returns a - printable string. */ - -char * -safe_strerror (int errnum) -{ - char *msg; - - msg = strerror (errnum); - if (msg == NULL) - { - static char buf[32]; - - xsnprintf (buf, sizeof buf, "(undocumented errno %d)", errnum); - msg = buf; - } - return (msg); -} - /* Wrapper for select. Nothing special needed on POSIX platforms. */ int