summaryrefslogtreecommitdiffstats
path: root/ecpg_config.h
diff options
context:
space:
mode:
authorTom Lane <tgl@fedoraproject.org>2007-09-04 17:26:37 +0000
committerTom Lane <tgl@fedoraproject.org>2007-09-04 17:26:37 +0000
commit23226f90bbbaef85ecd164129259131addf7a27c (patch)
treeea44d42eef2b1fe84cd94b14af059e64b96233f8 /ecpg_config.h
parent05e04c889cdc29d527bf916031d37bf33ef0868e (diff)
downloadpostgresql-setup-23226f90bbbaef85ecd164129259131addf7a27c.tar.gz
postgresql-setup-23226f90bbbaef85ecd164129259131addf7a27c.tar.xz
postgresql-setup-23226f90bbbaef85ecd164129259131addf7a27c.zip
Fix multilib problem introduced in 8.2.x: new include file ecpg_config.h ispostgresql-8_2_4-6_fc8
architecture-dependent.
Diffstat (limited to 'ecpg_config.h')
-rw-r--r--ecpg_config.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/ecpg_config.h b/ecpg_config.h
new file mode 100644
index 0000000..5b0bdd2
--- /dev/null
+++ b/ecpg_config.h
@@ -0,0 +1,25 @@
+/*
+ * Kluge to support multilib installation of both 32- and 64-bit RPMS:
+ * we need to arrange that header files that appear in both RPMs are
+ * identical. Hence, this file is architecture-independent and calls
+ * in an arch-dependent file that will appear in just one RPM.
+ *
+ * To avoid breaking arches not explicitly supported by Red Hat, we
+ * use this indirection file *only* on known multilib arches.
+ *
+ * Note: this may well fail if user tries to use gcc's -I- option.
+ * But that option is deprecated anyway.
+ */
+#if defined(__x86_64__)
+#include "ecpg_config_x86_64.h"
+#elif defined(__i386__)
+#include "ecpg_config_i386.h"
+#elif defined(__ppc64__) || defined(__powerpc64__)
+#include "ecpg_config_ppc64.h"
+#elif defined(__ppc__) || defined(__powerpc__)
+#include "ecpg_config_ppc.h"
+#elif defined(__s390x__)
+#include "ecpg_config_s390x.h"
+#elif defined(__s390__)
+#include "ecpg_config_s390.h"
+#endif