mirror of
https://git.freebsd.org/ports.git
synced 2025-06-30 00:50:29 -04:00
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
17 lines
433 B
C
17 lines
433 B
C
--- get-edid/i2c.c.orig 2014-11-21 11:52:13 UTC
|
|
+++ get-edid/i2c.c
|
|
@@ -24,7 +24,13 @@ int open_i2c_dev(int i2cbus) {
|
|
char filename[16];
|
|
unsigned long funcs;
|
|
|
|
- sprintf(filename, "/dev/i2c-%d", i2cbus);
|
|
+ sprintf(filename,
|
|
+#if defined(__linux__)
|
|
+ "/dev/i2c-%d",
|
|
+#elif defined(__FreeBSD__)
|
|
+ "/dev/iic%d",
|
|
+#endif
|
|
+ i2cbus);
|
|
i2cfile = open(filename, O_RDWR);
|
|
|
|
if (i2cfile < 0 && errno == ENOENT) {
|