1234567891011121314151617181920212223242526272829303132333435 |
- $OpenBSD: patch-gcc_ada_adaint_c,v 1.1.1.1 2014/06/26 16:30:18 pascal Exp $
- --- gcc/ada/adaint.c.orig Mon Feb 24 17:51:58 2014
- +++ gcc/ada/adaint.c Wed Apr 23 12:48:59 2014
- @@ -1546,8 +1546,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. */
- @@ -2562,7 +2563,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__)
- @@ -4002,3 +4004,9 @@ __gnat_get_executable_load_address (void)
- #ifdef __cplusplus
- }
- #endif
- +
- +const char *
- +fname_as_string(int pretty_p __attribute__((__unused__)))
- +{
- + return NULL;
- +}
|