mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
Update.
* sysdeps/unix/make_errlist.c: Adjust sys_errlist declaration to what we define in <stdio.h>.
This commit is contained in:
parent
d3f8be6d13
commit
5f6b4f1db0
@ -1,5 +1,8 @@
|
||||
2001-07-08 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/unix/make_errlist.c: Adjust sys_errlist declaration to
|
||||
what we define in <stdio.h>.
|
||||
|
||||
* iconv/iconv_prog.c (main): Don't unconditionally define
|
||||
variables only use if _POSIX_MAPPED_FILES is defined.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991, 1992, 1995, 1997, 1999, 2001 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991,1992,1995,1997,1999,2001 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -23,19 +23,19 @@
|
||||
|
||||
extern int sys_nerr;
|
||||
#ifndef HAVE_STRERROR
|
||||
extern char *sys_errlist[];
|
||||
extern const char *const sys_errlist[];
|
||||
#endif
|
||||
|
||||
int
|
||||
main ()
|
||||
main (void)
|
||||
{
|
||||
register int i;
|
||||
struct tm timenow;
|
||||
time_t now;
|
||||
int year;
|
||||
|
||||
now = time(NULL);
|
||||
timenow = *localtime(&now);
|
||||
now = time (NULL);
|
||||
timenow = *localtime (&now);
|
||||
|
||||
year = timenow.tm_year + 1900;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user