| From 9a701143fc38fd9f5373af70dfd5f0da0bc8e04a Mon Sep 17 00:00:00 2001 |
| From: Robin Getz <rgetz@blackfin.uclinux.org> |
| Date: Mon, 15 Jul 2024 11:09:55 +0200 |
| Subject: [PATCH] Avoid collision with C library using NO_PROTOTYPES |
| |
| Upstream: dead |
| Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> |
| --- |
| dhry_1.c | 6 ++++++ |
| 1 file changed, 6 insertions(+) |
| |
| diff --git a/dhry_1.c b/dhry_1.c |
| index 358bdc3..3ed1716 100644 |
| --- a/dhry_1.c |
| +++ b/dhry_1.c |
| @@ -28,7 +28,9 @@ char Ch_1_Glob, |
| int Arr_1_Glob [50]; |
| int Arr_2_Glob [50] [50]; |
| |
| +#ifndef NO_PROTOTYPES |
| extern char *malloc (); |
| +#endif |
| Enumeration Func_1 (); |
| /* forward declaration necessary since Enumeration may not simply be int */ |
| |
| @@ -45,14 +47,18 @@ Enumeration Func_1 (); |
| |
| #ifdef TIMES |
| struct tms time_info; |
| +#ifndef NO_PROTOTYPES |
| extern int times (); |
| /* see library function "times" */ |
| +#endif |
| #define Too_Small_Time 120 |
| /* Measurements should last at least about 2 seconds */ |
| #endif |
| #ifdef TIME |
| +#ifndef NO_PROTOTYPES |
| extern long time(); |
| /* see library function "time" */ |
| +#endif |
| #define Too_Small_Time 2 |
| /* Measurements should last at least 2 seconds */ |
| #endif |
| -- |
| 2.45.2 |
| |