1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
Description: Fix FTBFS due to -Werror=implicit-function-declaration
#include appropriate headers; also fix srandom() call.
Author: Thibaut Paumard <thibaut@debian.org>
Origin: vendor
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066524
Forwarded: no
Last-Update: 2024-08-01
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/imutil.c
+++ b/imutil.c
@@ -24,6 +24,8 @@
#include <math.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <time.h>
/************************************************************************
* noop. For testing and timing. *
@@ -401,7 +403,7 @@
void ran1init()
{
- srandom(); /* WARNING! this might be platform specific */
+ srandom(time(NULL)); /* WARNING! this might be platform specific */
}
float ran1()
--- a/sort.h
+++ b/sort.h
@@ -55,5 +55,7 @@
extern void insort ();
extern void partial_quickersort ();
extern void sedgesort ();
-
-
+void insort_long (long *array, int len);
+void insort_float (float *array, int len);
+void insort_double (double *array, int len);
+void insort_short (short *array, int len);
|