Package: m4api / 0.3~0.9646fd-3

fix-several-implicit-declarations.patch Patch series | 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
26
27
Description: Fix several implicit declarations
Author: Nick Rosbrook <enr0n@ubuntu.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2060847
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066290
Last-Update: 2024-04-10
--- a/m4api.c
+++ b/m4api.c
@@ -391,6 +391,8 @@
   return 0;
 }
 
+int m4SetBinary(m4Handle *dev, struct m4ConfigField *field, char const *val);
+
 int m4SetFloat(m4Handle *dev, enum m4FieldID fid, float val) {
   char binary[2];
   int ival;
--- a/m4ctl.c
+++ b/m4ctl.c
@@ -17,6 +17,8 @@
  */
 
 #include <stdio.h>
+#include <string.h>
+#include <time.h>
 #include <usb.h>
 
 #include "m4api.h"