$OpenBSD: patch-gcc_ada_s-osprim-posix_adb,v 1.1 2014/02/07 01:27:21 tobiasu Exp $
--- gcc/ada/s-osprim-posix.adb.orig	Sun Jan 19 03:46:06 2014
+++ gcc/ada/s-osprim-posix.adb	Sun Jan 19 06:31:26 2014
@@ -38,7 +38,7 @@ package body System.OS_Primitives is
    --  these declarations in System.OS_Interface and move these ones in
    --  the spec.
 
-   type time_t is new Long_Integer;
+   type time_t is new Long_Long_Integer;
 
    type timespec is record
       tv_sec  : time_t;
@@ -54,7 +54,11 @@ package body System.OS_Primitives is
    -----------
 
    function Clock return Duration is
-      type timeval is array (1 .. 2) of Long_Integer;
+      type timeval is
+         record
+            tv_sec  : time_t;
+            tv_usec : Long_Integer;
+         end record;
 
       procedure timeval_to_duration
         (T    : not null access timeval;
