strftime is not needed for svr4 machines; also fix the prototype footprint.
This commit is contained in:
parent
3b7c5b4ed8
commit
ff08129ca5
@ -1,15 +1,15 @@
|
||||
/* $NetBSD: util.c,v 1.17 1998/09/18 20:15:36 christos Exp $ */
|
||||
/* $NetBSD: util.c,v 1.18 1998/10/18 14:24:16 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Missing stuff from OS's
|
||||
*/
|
||||
|
||||
#ifdef MAKE_BOOTSTRAP
|
||||
static char rcsid[] = "$NetBSD: util.c,v 1.17 1998/09/18 20:15:36 christos Exp $";
|
||||
static char rcsid[] = "$NetBSD: util.c,v 1.18 1998/10/18 14:24:16 christos Exp $";
|
||||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: util.c,v 1.17 1998/09/18 20:15:36 christos Exp $");
|
||||
__RCSID("$NetBSD: util.c,v 1.18 1998/10/18 14:24:16 christos Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -430,12 +430,13 @@ snprintf(va_alist)
|
||||
return rv;
|
||||
}
|
||||
|
||||
#ifndef __SVR4
|
||||
int
|
||||
strftime(buf, len, fmt, tm)
|
||||
char *buf;
|
||||
size_t len;
|
||||
const char *fmt;
|
||||
struct tm *tm;
|
||||
const struct tm *tm;
|
||||
{
|
||||
static char months[][4] = {
|
||||
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
||||
@ -493,3 +494,4 @@ strftime(buf, len, fmt, tm)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user