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