2025-07-28 18:48:59 +00:00
|
|
|
Index: ghc-9.12.2/utils/hp2ps/Utilities.c
|
2025-07-24 16:30:33 +00:00
|
|
|
===================================================================
|
2025-07-28 18:48:59 +00:00
|
|
|
--- ghc-9.12.2.orig/utils/hp2ps/Utilities.c
|
|
|
|
+++ ghc-9.12.2/utils/hp2ps/Utilities.c
|
2025-07-24 16:30:33 +00:00
|
|
|
@@ -1,10 +1,9 @@
|
|
|
|
#include "Main.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
+#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include "Error.h"
|
|
|
|
|
2025-07-28 18:48:59 +00:00
|
|
|
-extern void* malloc();
|
2025-07-24 16:30:33 +00:00
|
|
|
-
|
|
|
|
char*
|
|
|
|
Basename(char *name)
|
|
|
|
{
|
|
|
|
@@ -89,7 +88,6 @@ void *
|
|
|
|
xrealloc(void *p, size_t n)
|
|
|
|
{
|
|
|
|
void *r;
|
2025-07-28 18:48:59 +00:00
|
|
|
- extern void *realloc();
|
2025-07-24 16:30:33 +00:00
|
|
|
|
|
|
|
r = realloc(p, n);
|
|
|
|
if (!r) {
|