opnsense-ports/devel/firmware-utils/files/patch-ptgen.c
Franco Fichtner 380121386c */*: sync with upstream
Taken from: FreeBSD
2015-08-21 10:51:02 +02:00

11 lines
246 B
C

--- ptgen.c.orig 2011-12-22 14:21:03 UTC
+++ ptgen.c
@@ -29,6 +29,8 @@
#include <ctype.h>
#include <fcntl.h>
+#include "freebsd.h"
+
#if __BYTE_ORDER == __BIG_ENDIAN
#define cpu_to_le16(x) bswap_16(x)
#elif __BYTE_ORDER == __LITTLE_ENDIAN