blob: af93beff5ab4d002cc04c14eb0288a6a6ae0002a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ab,v 1.1.1.1 2001/07/18 14:27:31 nra Exp $
--- dtime.c.orig Sat Sep 14 07:15:25 1991
+++ dtime.c
@@ -26,13 +26,17 @@
#include <sys/timeb.h>
#endif /*SYS5*/
+#include <sys/param.h>
+
+#if !(defined(BSD) && (BSD >= 199306))
extern long time();
struct tm* localtime();
+#endif
struct tws*
dtwstime()
{
- long clock;
+ time_t clock;
(void) time( &clock );
return dlocaltime( &clock );
|