mescc: Mes C Library: Support gcc-4.6.4: Fix ctime stub.

* lib/stub/ctime.c (ctime): Fix stub to avoid segfault upon use.
This commit is contained in:
Jan Nieuwenhuizen 2019-02-01 17:37:55 +01:00
parent feefb06512
commit 471f47273e
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 3 additions and 3 deletions

View File

@ -22,13 +22,13 @@
#include <errno.h>
#include <time.h>
int
ctime (int x)
char *
ctime (time_t const *TIME)
{
static int stub = 0;
if (__mes_debug () && !stub)
eputs ("ctime stub\n");
stub = 1;
errno = 0;
return 0;
return "now";
}