Fix compile with GCC 5 -Werror
newlib/libc/ * stdio64/freopen64.c: Include <string.h> for memset(). * stdlib/quick_exit.c: Include <unistd.h> for _exit(). * string/gnu_basename.c (__gnu_basename): Fix discarded const qualifier warning. * stdlib/strtold.c: Include "mprec.h" for _strtorx_r(). Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
parent
8b83da2d55
commit
8b8952064c
4 changed files with 5 additions and 1 deletions
|
@ -74,6 +74,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
|
|||
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/lock.h>
|
||||
|
||||
/**
|
||||
|
|
|
@ -30,6 +30,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
#include <stdlib.h>
|
||||
#include "local.h"
|
||||
#include "mprec.h"
|
||||
#undef FLT_ROUNDS
|
||||
|
||||
#ifdef _HAVE_LONG_DOUBLE
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ _DEFUN (__gnu_basename, (path),
|
|||
char *p;
|
||||
if ((p = strrchr (path, '/')))
|
||||
return p + 1;
|
||||
return path;
|
||||
return (char *) path;
|
||||
}
|
||||
|
||||
#endif /* !_NO_BASENAME */
|
||||
|
|
Loading…
Add table
Reference in a new issue