Blame SOURCES/bacula-multilib.patch

7af95a
diff --git a/src/host.h.in b/src/host.h.in
7af95a
index 3fdbb05..1b3e684 100644
7af95a
--- a/src/host.h.in
7af95a
+++ b/src/host.h.in
abd591
@@ -30,7 +30,25 @@
7af95a
  *
7af95a
  */
7af95a
 
7af95a
-#define HOST_OS  "@host@@post_host@"
7af95a
+#if defined(__x86_64__)
7af95a
+#define HOST_OS  "x86_64-redhat-linux-gnu"
7af95a
+#elif defined(__i386__)
7af95a
+#define HOST_OS  "i386-redhat-linux-gnu"
7af95a
+#elif defined(__ppc64__) || defined(__powerpc64__)
7af95a
+#define HOST_OS  "powerpc64-redhat-linux-gnu"
7af95a
+#elif defined(__ppc__) || defined(__powerpc__)
7af95a
+#define HOST_OS  "powerpc-redhat-linux-gnu"
7af95a
+#elif defined(__s390x__)
7af95a
+#define HOST_OS  "s390x-ibm-linux-gnu"
7af95a
+#elif defined(__s390__)
7af95a
+#define HOST_OS  "s390-ibm-linux-gnu"
7af95a
+#elif defined(__sparc__) && defined(__arch64__)
7af95a
+#define HOST_OS  "x86_64-redhat-linux-gnu"
7af95a
+#elif defined(__sparc__)
7af95a
+#define HOST_OS  "i386-redhat-linux-gnu"
abd591
+#elif defined(__aarch64__)
abd591
+#define HOST_OS  "aarch64-redhat-linux-gnu"
7af95a
+#endif
7af95a
 #define BACULA   "@BACULA@"
7af95a
 #define DISTNAME "@DISTNAME@"
7af95a
 #define DISTVER  "@DISTVER@"