| 1 | Patch-Source: https://gitlab.haskell.org/ghc/ghc/-/commit/7596675e470699f6184e13c08b268972028bc868
|
| 2 | --
|
| 3 | From 7596675e470699f6184e13c08b268972028bc868 Mon Sep 17 00:00:00 2001
|
| 4 | From: Jens Petersen <[email protected]>
|
| 5 | Date: Tue, 28 Jan 2025 09:32:55 +0000
|
| 6 | Subject: [PATCH] hp2ps Utilities.c: include stdlib.h instead of extern malloc
|
| 7 | and realloc
|
| 8 |
|
| 9 | ---
|
| 10 | utils/hp2ps/Utilities.c | 4 +---
|
| 11 | 1 file changed, 1 insertion(+), 3 deletions(-)
|
| 12 |
|
| 13 | diff --git a/utils/hp2ps/Utilities.c b/utils/hp2ps/Utilities.c
|
| 14 | index f79ddd827154..fc0fdd1e30a5 100644
|
| 15 | |
| 16 | |
| 17 | @@ -1,10 +1,9 @@
|
| 18 | #include "Main.h"
|
| 19 | #include <stdio.h>
|
| 20 | +#include <stdlib.h>
|
| 21 | #include <string.h>
|
| 22 | #include "Error.h"
|
| 23 |
|
| 24 | -extern void* malloc();
|
| 25 | -
|
| 26 | char*
|
| 27 | Basename(char *name)
|
| 28 | {
|
| 29 | @@ -89,7 +88,6 @@ void *
|
| 30 | xrealloc(void *p, size_t n)
|
| 31 | {
|
| 32 | void *r;
|
| 33 | - extern void *realloc();
|
| 34 |
|
| 35 | r = realloc(p, n);
|
| 36 | if (!r) {
|
| 37 | --
|
| 38 | GitLab
|
| 39 |
|