Fix MinGW native compilation of gdb/gdbsupport/gdb_wait.c
[deliverable/binutils-gdb.git] / gdb / gdbsupport / common-utils.h
index 23bf354a8bd1bedff5c6855ec0759acb430173bf..ba03427c6f790095345b25807ec4c7017a782e11 100644 (file)
@@ -1,6 +1,6 @@
 /* Shared general utility routines for GDB, the GNU debugger.
 
-   Copyright (C) 1986-2019 Free Software Foundation, Inc.
+   Copyright (C) 1986-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -108,9 +108,9 @@ std::string extract_string_maybe_quoted (const char **arg);
 
 /* The strerror() function can return NULL for errno values that are
    out of range.  Provide a "safe" version that always returns a
-   printable string.  */
+   printable string.  This version is also thread-safe.  */
 
-extern char *safe_strerror (int);
+extern const char *safe_strerror (int);
 
 /* Return true if the start of STRING matches PATTERN, false otherwise.  */
 
This page took 0.024846 seconds and 4 git commands to generate.