File: gcc-15.patch

package info (click to toggle)
bootp 2.4.3-21.2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 924 kB
  • sloc: ansic: 11,453; makefile: 379; sh: 55
file content (25 lines) | stat: -rw-r--r-- 774 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
24
25
Description: Fix FTBFS with GCC 15
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1096387

--- bootp-2.4.3.orig/Makefile
+++ bootp-2.4.3/Makefile
@@ -9,7 +9,7 @@
 # OPTion DEFinitions:
 # Remove the -DVEND_CMU if you don't wish to support the "CMU vendor format"
 # in addition to the RFC1048 format.  Leaving out DEBUG saves little.
-OPTDEFS= -DSYSLOG -DVEND_CMU -DDHCP -DDEBUG -g -O2 -Wall
+OPTDEFS= -DSYSLOG -DVEND_CMU -DDHCP -DDEBUG -g -O2 -Wall -std=gnu17
 
 # Uncomment and edit this to choose the facility code used for syslog.
 LOG_FACILITY= "-DLOG_BOOTP=LOG_DAEMON"
--- bootp-2.4.3.orig/hwaddr.c
+++ bootp-2.4.3/hwaddr.c
@@ -31,6 +31,7 @@
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>
 #ifndef	NO_UNISTD
 #include <unistd.h>
 #endif