patch-gcc_ada_adaint_c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. $OpenBSD: patch-gcc_ada_adaint_c,v 1.1.1.1 2014/06/26 16:30:18 pascal Exp $
  2. --- gcc/ada/adaint.c.orig Mon Feb 24 17:51:58 2014
  3. +++ gcc/ada/adaint.c Wed Apr 23 12:48:59 2014
  4. @@ -1546,8 +1546,9 @@ __gnat_file_time_fd (int fd)
  5. /* Set the file time stamp. */
  6. void
  7. -__gnat_set_file_time_name (char *name, time_t time_stamp)
  8. +__gnat_set_file_time_name (char *name, OS_Time ts)
  9. {
  10. + time_t time_stamp = (time_t) ts;
  11. #if defined (__vxworks)
  12. /* Code to implement __gnat_set_file_time_name for these systems. */
  13. @@ -2562,7 +2563,8 @@ __gnat_number_of_cpus (void)
  14. {
  15. int cores = 1;
  16. -#if defined (linux) || defined (sun) || defined (AIX) || defined (__APPLE__)
  17. +#if defined (linux) || defined (sun) || defined (AIX) || defined (__APPLE__) ||\
  18. + defined (__OpenBSD__)
  19. cores = (int) sysconf (_SC_NPROCESSORS_ONLN);
  20. #elif defined (__hpux__)
  21. @@ -4002,3 +4004,9 @@ __gnat_get_executable_load_address (void)
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. +
  26. +const char *
  27. +fname_as_string(int pretty_p __attribute__((__unused__)))
  28. +{
  29. + return NULL;
  30. +}