summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/time.c')
-rw-r--r--otherlibs/unix/time.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/otherlibs/unix/time.c b/otherlibs/unix/time.c
index 6a16ff00e..4278053fb 100644
--- a/otherlibs/unix/time.c
+++ b/otherlibs/unix/time.c
@@ -11,12 +11,11 @@
/* $Id$ */
+#include <time.h>
#include <mlvalues.h>
#include "unixsupport.h"
-extern long time();
-
-value unix_time() /* ML */
+value unix_time(void) /* ML */
{
- return Val_long(time((long *) NULL));
+ return Val_long(time((time_t *) NULL));
}