OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc?expand=0&rev=416
25 lines
512 B
Diff
25 lines
512 B
Diff
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) {
|