ports/sysutils/read-edid/files/patch-get-edid_i2c-dev.h
Alexey Dokuchaev 73966541c1 Add a port of read-edid utility, a pair of tools for reading the EDID from
a monitor.  It is mostly useful to read LCD matrix manufacturer and model.

WWW: http://www.polypux.org/projects/read-edid/

NB: TIMESTAMP line in distinfo should read as follows, but has to stay in
its current form due to a bug in the hook script:
TIMESTAMP (read-edid-3.0.2.tar.gz) = 1430271430
2016-08-20 18:43:29 +00:00

21 lines
416 B
C

--- get-edid/i2c-dev.h.orig 2011-10-04 19:57:18 UTC
+++ get-edid/i2c-dev.h
@@ -25,9 +25,17 @@
#ifndef LIB_I2CDEV_H
#define LIB_I2CDEV_H
-#include <linux/types.h>
+#include <sys/types.h>
#include <sys/ioctl.h>
+#if defined(__FreeBSD__)
+typedef int8_t __s8;
+typedef int16_t __s16;
+typedef int32_t __s32;
+typedef uint8_t __u8;
+typedef uint16_t __u16;
+typedef uint32_t __u32;
+#endif
/* -- i2c.h -- */