$OpenBSD: patch-gcc_ada_adaint_c,v 1.3 2014/02/07 01:31:41 tobiasu Exp $
--- gcc/ada/adaint.c.orig	Wed Feb  6 13:01:20 2013
+++ gcc/ada/adaint.c	Mon Jan 20 01:31:47 2014
@@ -1463,8 +1463,9 @@ __gnat_file_time_fd (int fd)
 /* Set the file time stamp.  */
 
 void
-__gnat_set_file_time_name (char *name, time_t time_stamp)
+__gnat_set_file_time_name (char *name, OS_Time ts)
 {
+  time_t time_stamp = (time_t) ts;
 #if defined (__vxworks)
 
 /* Code to implement __gnat_set_file_time_name for these systems.  */
@@ -2467,7 +2468,8 @@ __gnat_number_of_cpus (void)
 {
   int cores = 1;
 
-#if defined (linux) || defined (sun) || defined (AIX) || defined (__APPLE__)
+#if defined (linux) || defined (sun) || defined (AIX) || defined (__APPLE__) ||\
+  defined (__OpenBSD__)
   cores = (int) sysconf (_SC_NPROCESSORS_ONLN);
 
 #elif defined (__hpux__)
@@ -3855,3 +3857,9 @@ void __gnat_cpu_set (int cpu, size_t count ATTRIBUTE_U
 #ifdef __cplusplus
 }
 #endif
+
+const char *
+fname_as_string(int pretty_p __attribute__((__unused__)))
+{
+	return NULL;
+}
