diff options
author | Stefan Eßer <se@FreeBSD.org> | 2020-09-21 15:03:43 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2020-09-21 15:03:43 +0000 |
commit | 2380a3cfc59187ebd4191bdd9b21291570c66180 (patch) | |
tree | 79244d9fb03cd36296a1f10c4686303eb673dbdf /comms/lirc/files/patch-drivers_lirc.h | |
parent | Add textproc/bibclean (diff) |
Fix build with -fno-common
While here add license and regenerate all patches with make makepatch.
Diffstat (limited to 'comms/lirc/files/patch-drivers_lirc.h')
-rw-r--r-- | comms/lirc/files/patch-drivers_lirc.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/comms/lirc/files/patch-drivers_lirc.h b/comms/lirc/files/patch-drivers_lirc.h new file mode 100644 index 000000000000..1538254f6fae --- /dev/null +++ b/comms/lirc/files/patch-drivers_lirc.h @@ -0,0 +1,20 @@ +--- drivers/lirc.h.orig 2011-03-25 22:28:18 UTC ++++ drivers/lirc.h +@@ -9,11 +9,16 @@ + #if defined(__linux__) + #include <linux/types.h> + #include <linux/ioctl.h> +-#elif defined(_NetBSD_) ++#elif defined(_NetBSD_) || defined(__FreeBSD__) + #include <sys/ioctl.h> + #elif defined(_CYGWIN_) + #define __USE_LINUX_IOCTL_DEFS + #include <sys/ioctl.h> ++#endif ++#ifndef __linux__ ++#include <stdint.h> ++#define __u32 uint32_t ++#define __u64 uint64_t + #endif + + #define PULSE_BIT 0x01000000 |