ports/comms/lirc/files/patch-drivers_lirc.h
Stefan Eßer 2380a3cfc5 Fix build with -fno-common
While here add license and regenerate all patches with make makepatch.
2020-09-21 15:03:43 +00:00

20 lines
482 B
C

--- 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