1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: Fix build with GCC-14
Using GCC-14, and without this patch, the compiler may not find the
correct type of RANDOM_RETURN_TYPE from the system, which may result
in a compilation failure.
Author: Marcos Talau <talau@debian.org>
Bug-Debian: https://bugs.debian.org/1075321
Last-Update: 2024-10-25
--- ns2-2.35+dfsg.orig/configure
+++ ns2-2.35+dfsg/configure
@@ -7986,7 +7986,7 @@ else
#include <stdlib.h>
#include "confdefs.h"
long random() { return 1; }
-main() { exit(0); }
+int main() { exit(0); }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
|