Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/multimedia/dvb-apps/files/patch-util_av7110__loadkeys_av7110__loadkeys.c
18157 views
1
--- util/av7110_loadkeys/av7110_loadkeys.c.orig 2014-03-21 19:26:36 UTC
2
+++ util/av7110_loadkeys/av7110_loadkeys.c
3
@@ -1,4 +1,3 @@
4
-#include <asm/types.h>
5
#include <stdlib.h>
6
#include <unistd.h>
7
#include <sys/mman.h>
8
@@ -10,6 +9,15 @@
9
10
#include "input_keynames.h"
11
12
+#ifdef __FreeBSD__
13
+#define __u8 uint8_t
14
+#define __u16 uint16_t
15
+#define __u32 uint32_t
16
+#define __u64 uint64_t
17
+#define __s16 int16_t
18
+#define __s32 int32_t
19
+#endif
20
+
21
22
static
23
void print_error (const char *action, const char *file)
24
25