mirror of
https://github.com/ENSL/NS.git
synced 2024-12-11 13:22:03 +00:00
41 lines
914 B
C
41 lines
914 B
C
|
/*
|
||
|
** Originally written by Steven M. Bellovin <smb@research.att.com> while
|
||
|
** at the University of North Carolina at Chapel Hill. Later tweaked by
|
||
|
** a couple of people on Usenet. Completely overhauled by Rich $alz
|
||
|
** <rsalz@bbn.com> and Jim Berets <jberets@bbn.com> in August, 1990.
|
||
|
**
|
||
|
** This code is in the public domain and has no copyright.
|
||
|
*/
|
||
|
|
||
|
# include "setup.h"
|
||
|
#ifndef __linux__
|
||
|
#include <ctype.h>
|
||
|
#endif
|
||
|
|
||
|
#ifndef PARAMS
|
||
|
# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
|
||
|
# define PARAMS(Args) Args
|
||
|
# else
|
||
|
# define PARAMS(Args) ()
|
||
|
# endif
|
||
|
#endif
|
||
|
|
||
|
#ifdef vms
|
||
|
# include <types.h>
|
||
|
# include <time.h>
|
||
|
#else
|
||
|
# include <sys/types.h>
|
||
|
# if TIME_WITH_SYS_TIME
|
||
|
# include <sys/time.h>
|
||
|
# include <time.h>
|
||
|
# else
|
||
|
# if HAVE_SYS_TIME_H
|
||
|
# include <sys/time.h>
|
||
|
# else
|
||
|
# include <time.h>
|
||
|
# endif
|
||
|
# endif
|
||
|
#endif /* defined (vms) */
|
||
|
|
||
|
time_t curl_getdate PARAMS ((const char *p, const time_t *now));
|