diff options
| author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 17:12:47 +0000 |
|---|---|---|
| committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 17:12:47 +0000 |
| commit | 08a006d08a4c35d2c3ecc9a3d10cf7fd14661a84 (patch) | |
| tree | 0cfc4f0736babb895eb97a65c6defe632a0249c7 /comms/lirc/files/patch-drivers__lirc.h | |
| parent | f474a16cfbfad1844b9c50e45e36a3a77f0c59b5 (diff) | |
Rename all patches that contain '::' as a path separator, and use
'__' instead.
Diffstat (limited to 'comms/lirc/files/patch-drivers__lirc.h')
| -rw-r--r-- | comms/lirc/files/patch-drivers__lirc.h | 21 |
1 files changed, 21 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..b1eaca0284a9 --- /dev/null +++ b/comms/lirc/files/patch-drivers__lirc.h @@ -0,0 +1,21 @@ +--- drivers/lirc.h.orig ++++ drivers/lirc.h +@@ -9,12 +9,17 @@ + #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 + #define PULSE_MASK 0x00FFFFFF |
