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
6c1b4cf1d7
commit
087a0767a0
|
@ -19,14 +19,15 @@
|
|||
*/
|
||||
|
||||
#include <libmes.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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue