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:
parent
5480c133ae
commit
2673d28e50
|
@ -22,13 +22,13 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
int
|
char *
|
||||||
ctime (int x)
|
ctime (time_t const *time)
|
||||||
{
|
{
|
||||||
static int stub = 0;
|
static int stub = 0;
|
||||||
if (__mes_debug () && !stub)
|
if (__mes_debug () && !stub)
|
||||||
eputs ("ctime stub\n");
|
eputs ("ctime stub\n");
|
||||||
stub = 1;
|
stub = 1;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
return 0;
|
return "now";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue