File gnu23-hp2ps.patch of Package ghc
Index: ghc-9.12.2/utils/hp2ps/Utilities.c
===================================================================
--- ghc-9.12.2.orig/utils/hp2ps/Utilities.c
+++ ghc-9.12.2/utils/hp2ps/Utilities.c
@@ -1,10 +1,9 @@
#include "Main.h"
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "Error.h"
-extern void* malloc();
-
char*
Basename(char *name)
{
@@ -89,7 +88,6 @@ void *
xrealloc(void *p, size_t n)
{
void *r;
- extern void *realloc();
r = realloc(p, n);
if (!r) {