summaryrefslogtreecommitdiff
path: root/src/include/port/linux.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-07-05 16:09:31 +0000
committerBruce Momjian <bruce@momjian.us>2000-07-05 16:09:31 +0000
commit411cf2da3f9c517d304bce85b5013052737da954 (patch)
tree21efb12990e3f36f1d52600c3ca5639ca66aab03 /src/include/port/linux.h
parent972604ec60ee950f47d0a722cadaf2fb4b5b71d3 (diff)
attached to this mail is a patch from a colleague that makes
PostgreSQL-7.0.2 run on Linux for the Intel-IA64 architecture. It also fixes a bug in the configure scripts that caused configure to fail on the fcntl(F_SETLK) test. This fix triggered a bug in the fcntl(F_SETLK) code of the Linux kernel when used on unix domain sockets resulting in postmaster to segfault immediately after startup. There is a fix available and included in the kernel that will be on SuSE Linux 7.0, but kernels <= 2.2.16 still have this bug. Reinhard Max
Diffstat (limited to 'src/include/port/linux.h')
-rw-r--r--src/include/port/linux.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/port/linux.h b/src/include/port/linux.h
index 2ddb34df2c5..3555aba6d04 100644
--- a/src/include/port/linux.h
+++ b/src/include/port/linux.h
@@ -33,7 +33,12 @@ typedef unsigned int slock_t;
#define HAS_TEST_AND_SET
#elif defined(__arm__)
-typedef unsigned char slock_t
+typedef unsigned char slock_t;
+
+#define HAS_TEST_AND_SET
+
+#elif defined(__ia64__)
+typedef unsigned int slock_t;
#define HAS_TEST_AND_SET