File: fix-64-bit-implicit-declarations.patch

package info (click to toggle)
madfuload 1.2-4.2
  • links: PTS
  • area: non-free
  • in suites: bookworm, bullseye, buster
  • size: 416 kB
  • ctags: 131
  • sloc: sh: 804; ansic: 685; makefile: 36
file content (15 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Ubuntu: https://bugs.launchpad.net/ubuntu/+source/madfuload/+bug/301771
Description: Fixes the implicit declarations warnings and stops segfaults
on 64 bit architectures
--- a/madfuload.c
+++ b/madfuload.c
@@ -16,7 +16,8 @@
 #include <fcntl.h>
 #include <getopt.h>
 #include <syslog.h>
-#include <linux/ioctl.h>
+#include <sys/ioctl.h>
+#include <string.h>
 
 /* USB stuff -- we can't rely on all Linux headers being there */