summaryrefslogtreecommitdiff
path: root/sys-block/cec/files/cec-14-fno-common.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
commitd934827bf44b7cfcf6711964418148fa60877668 (patch)
tree0625f358789b5e015e49db139cc1dbc9be00428f /sys-block/cec/files/cec-14-fno-common.patch
parent2e34d110f164bf74d55fced27fe0000201b3eec5 (diff)
gentoo resync : 25.11.2020
Diffstat (limited to 'sys-block/cec/files/cec-14-fno-common.patch')
-rw-r--r--sys-block/cec/files/cec-14-fno-common.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/sys-block/cec/files/cec-14-fno-common.patch b/sys-block/cec/files/cec-14-fno-common.patch
new file mode 100644
index 000000000000..e7e3ce022675
--- /dev/null
+++ b/sys-block/cec/files/cec-14-fno-common.patch
@@ -0,0 +1,57 @@
+--- a/cec.c
++++ b/cec.c
+@@ -20,6 +20,9 @@
+ typedef struct Shelf Shelf;
+ typedef struct Pkt Pkt;
+
++int debug;
++char *progname;
++
+ struct Pkt {
+ uchar dst[6];
+ uchar src[6];
+@@ -76,7 +79,7 @@ extern int errno;
+ Shelf tab[Ntab];
+ int ntab;
+ uchar contag;
+-extern int fd; /* set in netopen */
++int fd; /* set in netopen */
+ int shelf;
+ Shelf *connp;
+ char esc = '';
+--- a/cec.h
++++ b/cec.h
+@@ -6,8 +6,8 @@ typedef unsigned char uchar;
+ typedef unsigned int uint;
+ #endif
+
+-int debug;
+-char *progname;
++extern int debug;
++extern char *progname;
+ extern char hbacecfile[];
+
+ int netopen(char *name);
+--- a/hba.c
++++ b/hba.c
+@@ -9,7 +9,7 @@
+
+ #include "cec.h"
+
+-int fd;
++extern int fd;
+ static char hba_bytes[1<<14];
+ static int hba_len;
+
+--- a/linux.c
++++ b/linux.c
+@@ -25,7 +25,8 @@
+
+ #include "cec.h"
+
+-int fd;
++extern int fd;
++extern int debug;
+ char net_bytes[1<<14];
+ int net_len;
+ char srcaddr[6];