File: 0009-fix-build-with-gcc14.patch

package info (click to toggle)
ns2 2.35%2Bdfsg-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 79,396 kB
  • sloc: cpp: 172,923; tcl: 107,167; perl: 6,391; sh: 6,143; ansic: 5,846; makefile: 829; awk: 525; csh: 355
file content (19 lines) | stat: -rw-r--r-- 565 bytes parent folder | download
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 :