0005-prototypes.patch 921 B

1234567891011121314151617181920212223242526272829303132333435
  1. Avoid collision with C library using NO_PROTOTYPES found in code already
  2. Patch by Robin Getz <rgetz@blackfin.uclinux.org>
  3. --- a/dhry_1.c
  4. +++ b/dhry_1.c
  5. @@ -28,7 +28,9 @@
  6. int Arr_1_Glob [50];
  7. int Arr_2_Glob [50] [50];
  8. +#ifndef NO_PROTOTYPES
  9. extern char *malloc ();
  10. +#endif
  11. Enumeration Func_1 ();
  12. /* forward declaration necessary since Enumeration may not simply be int */
  13. @@ -45,14 +45,18 @@
  14. #ifdef TIMES
  15. struct tms time_info;
  16. +#ifndef NO_PROTOTYPES
  17. extern int times ();
  18. /* see library function "times" */
  19. +#endif
  20. #define Too_Small_Time 120
  21. /* Measurements should last at least about 2 seconds */
  22. #endif
  23. #ifdef TIME
  24. +#ifndef NO_PROTOTYPES
  25. extern long time();
  26. /* see library function "time" */
  27. +#endif
  28. #define Too_Small_Time 2
  29. /* Measurements should last at least 2 seconds */
  30. #endif