Blame SOURCES/0060-add-some-includes.patch

a436c4
From 9d9b7103257abc6fe26b383253e1f15f726f31cd Mon Sep 17 00:00:00 2001
a436c4
From: Lyonel Vincent <lyonel@ezix.org>
a436c4
Date: Tue, 12 Oct 2021 23:42:02 +0200
a436c4
Subject: [PATCH 60/65] add some includes
a436c4
a436c4
maybe needed for newer GCCs
a436c4
---
a436c4
 src/core/cdrom.cc         | 1 +
a436c4
 src/core/cpuid.cc         | 1 +
a436c4
 src/core/fb.cc            | 1 +
a436c4
 src/core/ideraid.cc       | 1 +
a436c4
 src/core/mounts.cc        | 2 +-
a436c4
 src/core/osutils.cc       | 1 +
a436c4
 src/core/partitions.cc    | 2 ++
a436c4
 src/core/pci.cc           | 1 +
a436c4
 src/core/pcmcia-legacy.cc | 1 +
a436c4
 src/core/pcmcia.cc        | 2 ++
a436c4
 src/core/smp.cc           | 1 +
a436c4
 src/core/spd.cc           | 1 +
a436c4
 src/core/usb.cc           | 2 ++
a436c4
 src/core/volumes.cc       | 1 +
a436c4
 src/gui/engine.cc         | 2 ++
a436c4
 src/gui/print-gui.cc      | 1 +
a436c4
 16 files changed, 20 insertions(+), 1 deletion(-)
a436c4
a436c4
diff --git a/src/core/cdrom.cc b/src/core/cdrom.cc
a436c4
index 11b9a84..58fa7b0 100644
a436c4
--- a/src/core/cdrom.cc
a436c4
+++ b/src/core/cdrom.cc
a436c4
@@ -25,6 +25,7 @@
a436c4
 #include <unistd.h>
a436c4
 #include <limits.h>
a436c4
 #include <linux/cdrom.h>
a436c4
+#include <climits>
a436c4
 
a436c4
 __ID("@(#) $Id$");
a436c4
 
a436c4
diff --git a/src/core/cpuid.cc b/src/core/cpuid.cc
a436c4
index c40dc98..3cb60ac 100644
a436c4
--- a/src/core/cpuid.cc
a436c4
+++ b/src/core/cpuid.cc
a436c4
@@ -7,6 +7,7 @@
a436c4
 #include <fcntl.h>
a436c4
 #include <sys/stat.h>
a436c4
 #include <sys/time.h>
a436c4
+#include <cstring>
a436c4
 
a436c4
 __ID("@(#) $Id$");
a436c4
 
a436c4
diff --git a/src/core/fb.cc b/src/core/fb.cc
a436c4
index 5456204..d198982 100644
a436c4
--- a/src/core/fb.cc
a436c4
+++ b/src/core/fb.cc
a436c4
@@ -14,6 +14,7 @@
a436c4
 #include <stdio.h>
a436c4
 #include <string.h>
a436c4
 #include <errno.h>
a436c4
+#include <cstring>
a436c4
 
a436c4
 __ID("@(#) $Id$");
a436c4
 
a436c4
diff --git a/src/core/ideraid.cc b/src/core/ideraid.cc
a436c4
index 5cff28f..5e84ab0 100644
a436c4
--- a/src/core/ideraid.cc
a436c4
+++ b/src/core/ideraid.cc
a436c4
@@ -20,6 +20,7 @@
a436c4
 #include <string.h>
a436c4
 #include <dirent.h>
a436c4
 #include <ctype.h>
a436c4
+#include <cstring>
a436c4
 #include <vector>
a436c4
 #include <linux/hdreg.h>
a436c4
 #include <regex.h>
a436c4
diff --git a/src/core/mounts.cc b/src/core/mounts.cc
a436c4
index 495a3c2..79b682e 100644
a436c4
--- a/src/core/mounts.cc
a436c4
+++ b/src/core/mounts.cc
a436c4
@@ -14,7 +14,7 @@
a436c4
 #include <stdlib.h>
a436c4
 #include <string.h>
a436c4
 #include <unistd.h>
a436c4
-
a436c4
+#include <cstdlib>
a436c4
 
a436c4
 __ID("@(#) $Id$");
a436c4
 
a436c4
diff --git a/src/core/osutils.cc b/src/core/osutils.cc
a436c4
index 8cce54c..cfa09ca 100644
a436c4
--- a/src/core/osutils.cc
a436c4
+++ b/src/core/osutils.cc
a436c4
@@ -3,6 +3,7 @@
a436c4
 #include <sstream>
a436c4
 #include <iomanip>
a436c4
 #include <stack>
a436c4
+#include <cstring>
a436c4
 #include <fcntl.h>
a436c4
 #include <sys/stat.h>
a436c4
 #include <unistd.h>
a436c4
diff --git a/src/core/partitions.cc b/src/core/partitions.cc
a436c4
index 7b9fd4f..69fdc2c 100644
a436c4
--- a/src/core/partitions.cc
a436c4
+++ b/src/core/partitions.cc
a436c4
@@ -21,6 +21,8 @@
a436c4
 #include "volumes.h"
a436c4
 #include "osutils.h"
a436c4
 #include <stdio.h>
a436c4
+#include <stdlib.h>
a436c4
+#include <cstring>
a436c4
 #include <sys/types.h>
a436c4
 #include <sys/stat.h>
a436c4
 #include <fcntl.h>
a436c4
diff --git a/src/core/pci.cc b/src/core/pci.cc
a436c4
index a1dd5c7..5040d75 100644
a436c4
--- a/src/core/pci.cc
a436c4
+++ b/src/core/pci.cc
a436c4
@@ -14,6 +14,7 @@
a436c4
 #include <string.h>
a436c4
 #include <stdlib.h>
a436c4
 #include <dirent.h>
a436c4
+#include <cstring>
a436c4
 
a436c4
 __ID("@(#) $Id$");
a436c4
 
a436c4
diff --git a/src/core/pcmcia-legacy.cc b/src/core/pcmcia-legacy.cc
a436c4
index bf68911..8983ccb 100644
a436c4
--- a/src/core/pcmcia-legacy.cc
a436c4
+++ b/src/core/pcmcia-legacy.cc
a436c4
@@ -9,6 +9,7 @@
a436c4
 #include <stdio.h>
a436c4
 #include <string.h>
a436c4
 #include <errno.h>
a436c4
+#include <cstring>
a436c4
 
a436c4
 __ID("@(#) $Id$");
a436c4
 
a436c4
diff --git a/src/core/pcmcia.cc b/src/core/pcmcia.cc
a436c4
index 1db47b2..4d93947 100644
a436c4
--- a/src/core/pcmcia.cc
a436c4
+++ b/src/core/pcmcia.cc
a436c4
@@ -6,6 +6,8 @@
a436c4
 #include <sys/stat.h>
a436c4
 #include <fcntl.h>
a436c4
 #include <unistd.h>
a436c4
+#include <cstdlib>
a436c4
+#include <cstring>
a436c4
 #include <stdio.h>
a436c4
 #include <stdlib.h>
a436c4
 #include <string.h>
a436c4
diff --git a/src/core/smp.cc b/src/core/smp.cc
a436c4
index 9bd3631..df1c88b 100644
a436c4
--- a/src/core/smp.cc
a436c4
+++ b/src/core/smp.cc
a436c4
@@ -11,6 +11,7 @@
a436c4
 #include <fcntl.h>
a436c4
 #include <string.h>
a436c4
 #include <unistd.h>
a436c4
+#include <cstring>
a436c4
 
a436c4
 #include "osutils.h"
a436c4
 
a436c4
diff --git a/src/core/spd.cc b/src/core/spd.cc
a436c4
index a304d06..babdf1b 100644
a436c4
--- a/src/core/spd.cc
a436c4
+++ b/src/core/spd.cc
a436c4
@@ -9,6 +9,7 @@
a436c4
 #include <string>
a436c4
 #include <dirent.h>
a436c4
 #include <stdio.h>
a436c4
+#include <cstring>
a436c4
 
a436c4
 __ID("@(#) $Id$");
a436c4
 
a436c4
diff --git a/src/core/usb.cc b/src/core/usb.cc
a436c4
index da65e10..353036d 100644
a436c4
--- a/src/core/usb.cc
a436c4
+++ b/src/core/usb.cc
a436c4
@@ -14,6 +14,7 @@
a436c4
 #include "heuristics.h"
a436c4
 #include "options.h"
a436c4
 #include <stdio.h>
a436c4
+#include <stdlib.h>
a436c4
 #include <map>
a436c4
 #include <sys/types.h>
a436c4
 #include <sys/stat.h>
a436c4
@@ -24,6 +25,7 @@
a436c4
 #include <stdlib.h>
a436c4
 #include <unistd.h>
a436c4
 #include <dirent.h>
a436c4
+#include <cstring>
a436c4
 
a436c4
 #define PROCBUSUSBDEVICES "/proc/bus/usb/devices"
a436c4
 #define SYSKERNELDEBUGUSBDEVICES "/sys/kernel/debug/usb/devices"
a436c4
diff --git a/src/core/volumes.cc b/src/core/volumes.cc
a436c4
index 6fce2ee..53096ba 100644
a436c4
--- a/src/core/volumes.cc
a436c4
+++ b/src/core/volumes.cc
a436c4
@@ -22,6 +22,7 @@
a436c4
 #include <unistd.h>
a436c4
 #include <stdint.h>
a436c4
 #include <time.h>
a436c4
+#include <cstring>
a436c4
 
a436c4
 __ID("@(#) $Id$");
a436c4
 
a436c4
diff --git a/src/gui/engine.cc b/src/gui/engine.cc
a436c4
index 2962ec8..ea442cc 100644
a436c4
--- a/src/gui/engine.cc
a436c4
+++ b/src/gui/engine.cc
a436c4
@@ -6,6 +6,8 @@
a436c4
 #include "osutils.h"
a436c4
 #include "options.h"
a436c4
 
a436c4
+#include <cstring>
a436c4
+#include <cstdlib>
a436c4
 #include <iostream>
a436c4
 #include <fstream>
a436c4
 #include <sys/utsname.h>
a436c4
diff --git a/src/gui/print-gui.cc b/src/gui/print-gui.cc
a436c4
index 4138424..916f25d 100644
a436c4
--- a/src/gui/print-gui.cc
a436c4
+++ b/src/gui/print-gui.cc
a436c4
@@ -10,6 +10,7 @@
a436c4
 #include "version.h"
a436c4
 #include "osutils.h"
a436c4
 #include "stock.h"
a436c4
+#include <cstring>
a436c4
 #include <sstream>
a436c4
 #include <iomanip>
a436c4
 #include <unistd.h>
a436c4
-- 
a436c4
2.33.1
a436c4