Hi,
lang/smlnj seems to be the last time_t / struct timeval offender in the
tree. While this diff is not enough to make it Y2038 proof it makes
smlnj usable again.
OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/smlnj/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- Makefile 11 Mar 2013 11:20:28 -0000 1.17
+++ Makefile 1 Oct 2013 00:31:40 -0000
@@ -5,7 +5,7 @@ ONLY_FOR_ARCHS=i386
COMMENT= New Jersey Standard ML
V= 110.75
-REVISION= 1
+REVISION= 2
PKGNAME= smlnj-$V
CATEGORIES= lang
Index: patches/patch-base_runtime_include_ml-timer_h
===================================================================
RCS file: patches/patch-base_runtime_include_ml-timer_h
diff -N patches/patch-base_runtime_include_ml-timer_h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-base_runtime_include_ml-timer_h 1 Oct 2013 00:11:14
-0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+--- base/runtime/include/ml-timer.h.orig Thu Jun 1 20:34:03 2000
++++ base/runtime/include/ml-timer.h Tue Oct 1 02:11:10 2013
+@@ -14,8 +14,8 @@
+ * struct timeval, but others do not.
+ */
+ typedef struct {
+- Int32_t seconds;
+- Int32_t uSeconds;
++ time_t seconds;
++ long uSeconds;
+ } Time_t;
+
+ extern void GetCPUTime (Time_t *user_t, Time_t *sys_t);