strptime() for minix.
This commit is contained in:
parent
08f731bae0
commit
ddc3f62290
3 changed files with 12 additions and 1 deletions
|
@ -66,6 +66,8 @@ _PROTOTYPE( struct tm *localtime_r, (const time_t *const timep,
|
|||
struct tm *tmp) );
|
||||
_PROTOTYPE( size_t strftime, (char *_s, size_t _max, const char *_fmt,
|
||||
const struct tm *_timep) );
|
||||
_PROTOTYPE(char *strptime, (const char *buf, const char *format,
|
||||
struct tm *timeptr) );
|
||||
|
||||
#ifdef _POSIX_SOURCE
|
||||
_PROTOTYPE( void tzset, (void) );
|
||||
|
|
|
@ -5,4 +5,5 @@ SRCS+= \
|
|||
ftime.c \
|
||||
asctime.c \
|
||||
localtime.c \
|
||||
strftime.c
|
||||
strftime.c \
|
||||
strptime.c
|
||||
|
|
|
@ -34,10 +34,18 @@
|
|||
#include <config.h>
|
||||
#endif
|
||||
#include <ctype.h>
|
||||
#ifdef __minix
|
||||
#include <time.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#ifndef __minix
|
||||
#include "roken.h"
|
||||
|
||||
__RCSID("$Heimdal: strptime.c,v 1.2 1999/11/12 15:29:55 assar Exp $"
|
||||
"$NetBSD: strptime.c,v 1.1.1.3 2002/09/12 12:41:42 joda Exp $");
|
||||
#endif
|
||||
|
||||
static const char *abb_weekdays[] = {
|
||||
"Sun",
|
||||
|
|
Loading…
Reference in a new issue