File gnu23-hp2ps.patch of Package ghc-prepare-binary-distributions
Index: ghc-9.10.1/utils/hp2ps/Utilities.c
===================================================================
--- ghc-9.10.1.orig/utils/hp2ps/Utilities.c
+++ ghc-9.10.1/utils/hp2ps/Utilities.c
@@ -1,9 +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 +89,6 @@ void *
xrealloc(void *p, size_t n)
{
void *r;
- extern void *realloc();
r = realloc(p, n);
if (!r) {