aboutsummaryrefslogtreecommitdiff
path: root/sysutils/read-edid
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2020-08-26 09:36:18 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2020-08-26 09:36:18 +0000
commit9c8f08d85094d0f69321a1241de4f3735f8a1c14 (patch)
tree9809bebbd6ceaf5bac9d9dbb5e424b3d8eb10a60 /sysutils/read-edid
parented407f74a2bc414f4f6442e899fe54a539f418d9 (diff)
downloadports-9c8f08d85094d0f69321a1241de4f3735f8a1c14.tar.gz
ports-9c8f08d85094d0f69321a1241de4f3735f8a1c14.zip
Unbreak the build with -fno-common (Clang 11, GCC 10).
Reported by: pkg-fallout
Notes
Notes: svn path=/head/; revision=546256
Diffstat (limited to 'sysutils/read-edid')
-rw-r--r--sysutils/read-edid/files/patch-get-edid_classic.c9
-rw-r--r--sysutils/read-edid/files/patch-get-edid_i2c.c9
2 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/read-edid/files/patch-get-edid_classic.c b/sysutils/read-edid/files/patch-get-edid_classic.c
index 98666852ab4a..5837f56a0342 100644
--- a/sysutils/read-edid/files/patch-get-edid_classic.c
+++ b/sysutils/read-edid/files/patch-get-edid_classic.c
@@ -14,6 +14,15 @@
#include <unistd.h>
#include <libx86.h>
+@@ -26,7 +26,7 @@ typedef byte* real_ptr;
+ #define dosmemput(buffer,length,offset) memcpy(offset,buffer,length)
+
+ #define display(...) if (quiet == 0) { fprintf(stderr, __VA_ARGS__); }
+-int quiet;
++extern int quiet;
+
+ real_ptr far_ptr_to_real_ptr( uint32 farptr )
+ {
@@ -135,8 +135,17 @@ classicmain( unsigned contr, int qit )
return 10;
}
diff --git a/sysutils/read-edid/files/patch-get-edid_i2c.c b/sysutils/read-edid/files/patch-get-edid_i2c.c
index 81c3ae5658dc..3a4d51337c9d 100644
--- a/sysutils/read-edid/files/patch-get-edid_i2c.c
+++ b/sysutils/read-edid/files/patch-get-edid_i2c.c
@@ -1,5 +1,14 @@
--- get-edid/i2c.c.orig 2014-11-21 11:52:13 UTC
+++ get-edid/i2c.c
+@@ -15,7 +15,7 @@
+
+ //Ideas (but not too much actual code) taken from i2c-tools. Thanks guys.
+
+-int quiet;
++extern int quiet;
+
+ #define display(...) if (quiet == 0) { fprintf(stderr, __VA_ARGS__); }
+
@@ -24,7 +24,13 @@ int open_i2c_dev(int i2cbus) {
char filename[16];
unsigned long funcs;