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-11-23 21:35:05 +01:00
parent 5480c133ae
commit 2673d28e50
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";
}