ASR_BASE
Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/external/subpack/utils/lcdproc/patches/100-remove-build-timestamp.patch b/external/subpack/utils/lcdproc/patches/100-remove-build-timestamp.patch
new file mode 100644
index 0000000..1c6c84d
--- /dev/null
+++ b/external/subpack/utils/lcdproc/patches/100-remove-build-timestamp.patch
@@ -0,0 +1,31 @@
+--- a/clients/lcdproc/main.c
++++ b/clients/lcdproc/main.c
+@@ -58,7 +58,6 @@ int Quit = 0;
+ int sock = -1;
+
+ char *version = VERSION;
+-char *build_date = __DATE__;
+
+ int lcd_wid = 0;
+ int lcd_hgt = 0;
+--- a/server/main.c
++++ b/server/main.c
+@@ -104,7 +104,6 @@
+ char *version = VERSION;
+ char *protocol_version = PROTOCOL_VERSION;
+ char *api_version = API_VERSION;
+-char *build_date = __DATE__;
+
+
+ /**** Configuration variables ****/
+@@ -197,8 +196,8 @@ main(int argc, char **argv)
+
+ /* Report that server is starting (report will be delayed) */
+ report(RPT_NOTICE, "LCDd version %s starting", version);
+- report(RPT_INFO, "Built on %s, protocol version %s, API version %s",
+- build_date, protocol_version, api_version);
++ report(RPT_INFO, "Protocol version %s, API version %s",
++ protocol_version, api_version);
+
+ clear_settings();
+
diff --git a/external/subpack/utils/lcdproc/patches/110-in-outb.patch b/external/subpack/utils/lcdproc/patches/110-in-outb.patch
new file mode 100644
index 0000000..cd87e18
--- /dev/null
+++ b/external/subpack/utils/lcdproc/patches/110-in-outb.patch
@@ -0,0 +1,11 @@
+--- a/server/drivers/port.h
++++ b/server/drivers/port.h
+@@ -94,7 +94,7 @@ static inline int port_deny_multiple(uns
+ /* ---------------------------- Linux ------------------------------------ */
+ /* Use ioperm, inb and outb in <sys/io.h> (Linux) */
+ /* And iopl for higher addresses of PCI LPT cards */
+-#if defined HAVE_IOPERM
++#if defined(__GLIBC__) || (defined(__x86__) || defined(__x86_64__))
+
+ /* Glibc2 and Glibc1 */
+ # ifdef HAVE_SYS_IO_H
diff --git a/external/subpack/utils/lcdproc/patches/120-gcc10.patch b/external/subpack/utils/lcdproc/patches/120-gcc10.patch
new file mode 100644
index 0000000..d33e8e4
--- /dev/null
+++ b/external/subpack/utils/lcdproc/patches/120-gcc10.patch
@@ -0,0 +1,21 @@
+--- a/clients/lcdproc/iface.c
++++ b/clients/lcdproc/iface.c
+@@ -32,6 +32,7 @@
+ #define UNSET_INT -1
+ #define UNSET_STR "\01"
+
++IfaceInfo iface[MAX_INTERFACES];
+
+ static int iface_count = 0; /* number of interfaces */
+ static char unit_label[10] = "B"; /* default unit label is Bytes */
+--- a/clients/lcdproc/iface.h
++++ b/clients/lcdproc/iface.h
+@@ -18,7 +18,7 @@
+ /** max number of interfaces in multi-interface mode */
+ #define MAX_INTERFACES 3
+
+-IfaceInfo iface[MAX_INTERFACES]; /* interface info */
++extern IfaceInfo iface[MAX_INTERFACES]; /* interface info */
+
+ /** Update screen content */
+ int iface_screen(int rep, int display, int *flags_ptr);