summaryrefslogtreecommitdiff
path: root/c2esp-gcc10.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 11:09:09 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 11:09:09 +0000
commit346b1664daf9f55a455d4eb7ab707435cf54b591 (patch)
tree19f3e0d736b9ac57393d5e460ecc141fbcdc800b /c2esp-gcc10.patch
parentb520ffd500053272b831a0df8c42bd68476ee732 (diff)
automatic import of c2espopeneuler24.03_LTS
Diffstat (limited to 'c2esp-gcc10.patch')
-rw-r--r--c2esp-gcc10.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/c2esp-gcc10.patch b/c2esp-gcc10.patch
new file mode 100644
index 0000000..18dff75
--- /dev/null
+++ b/c2esp-gcc10.patch
@@ -0,0 +1,33 @@
+diff --git a/src/c2espcommon.c b/src/c2espcommon.c
+index 51291f7..409e7f6 100644
+--- a/src/c2espcommon.c
++++ b/src/c2espcommon.c
+@@ -43,11 +43,11 @@
+ * Globals...
+ */
+ char CallerName[50]; /* String that identifies the calling program */
+-int DoBack; /* Enables the back channel comms */
++extern int DoBack; /* Enables the back channel comms */
+ char BackBuf[32000]; //for the back channel replies from the printer
+ int BackBufLen=sizeof(BackBuf)-1;
+ FILE *LogFile = NULL; //file descriptor for log file
+-time_t StartTime;
++extern time_t StartTime;
+ int BlackPercent, ColourPercent;
+
+ time_t KeepAwake(time_t Start, int Interval, FILE *PrintFile)
+diff --git a/src/c2espcommon.h b/src/c2espcommon.h
+index b726204..967e9ce 100644
+--- a/src/c2espcommon.h
++++ b/src/c2espcommon.h
+@@ -35,8 +35,8 @@
+ /*
+ * Globals...
+ */
+-char BackBuf[32000]; //for the back channel replies from the printer
+-int ColourPercent, BlackPercent; //to store the detected marker levels
++extern char BackBuf[32000]; //for the back channel replies from the printer
++extern int ColourPercent, BlackPercent; //to store the detected marker levels
+
+
+ time_t KeepAwake(time_t Start, int Interval, FILE *PrintFile);