File: gcc-15.patch

package info (click to toggle)
xcircuit 3.9.73%2Bdfsg.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,652 kB
  • sloc: ansic: 80,417; sh: 7,295; tcl: 5,891; python: 449; makefile: 300
file content (23 lines) | stat: -rw-r--r-- 789 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Fix FTBFS with GCC 15
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1114445

--- xcircuit-3.9.73+dfsg.1.orig/elements.c
+++ xcircuit-3.9.73+dfsg.1/elements.c
@@ -7,6 +7,7 @@
 /*      written by Tim Edwards, 8/13/93                                 */
 /*----------------------------------------------------------------------*/
 
+#include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -54,8 +55,6 @@ extern colorindex *colorlist;
 extern Pixmap dbuf;
 #endif
 
-extern double atan2();
-
 /*------------------------------------------------------------------------*/
 /* Declarations of global variables                                       */
 /*------------------------------------------------------------------------*/