summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorBruce Momjian1997-07-29 14:09:11 +0000
committerBruce Momjian1997-07-29 14:09:11 +0000
commit8d25436d70a0e5f286a48cf60f4ad3899251eff9 (patch)
tree92cc30865d10fa5553e07f7cbc321f3ff3109d13 /src/include
parent7c5afb87c3d7c7608a3fbf894579428bc41484a9 (diff)
mkLinux patches from Tatsuo Ishii.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/port/linux.h15
-rw-r--r--src/include/utils/dt.h12
2 files changed, 23 insertions, 4 deletions
diff --git a/src/include/port/linux.h b/src/include/port/linux.h
index 7735f3ab0fd..261ce240a5f 100644
--- a/src/include/port/linux.h
+++ b/src/include/port/linux.h
@@ -7,11 +7,20 @@
# define JMP_BUF
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
-# if !defined(PPC)
-# define NEED_I386_TAS_ASM
-# define HAS_TEST_AND_SET
+# define NEED_I386_TAS_ASM
+# define HAS_TEST_AND_SET
+
+# if defined(PPC)
+ typedef unsigned int slock_t;
+# else
typedef unsigned char slock_t;
# endif
+
+# if defined(PPC)
+# undef NEED_I386_TAS_ASM
+# undef HAVE_INT_TIMEZONE
+# endif
+
# if defined(sparc)
# undef NEED_I386_TAS_ASM
# endif
diff --git a/src/include/utils/dt.h b/src/include/utils/dt.h
index 1de22f70df2..edf9715f931 100644
--- a/src/include/utils/dt.h
+++ b/src/include/utils/dt.h
@@ -8,7 +8,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: dt.h,v 1.13 1997/07/01 00:25:30 thomas Exp $
+ * $Id: dt.h,v 1.14 1997/07/29 14:08:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -215,10 +215,20 @@ typedef struct {
#define DATETIME_IS_NOEND(j) (j == DT_NOEND)
#define DATETIME_CURRENT(j) {j = DT_CURRENT;}
+#if defined(linux) && defined(PPC)
+extern int datetime_is_current(double j);
+#define DATETIME_IS_CURRENT(j) datetime_is_current(j)
+#else
#define DATETIME_IS_CURRENT(j) (j == DT_CURRENT)
+#endif
#define DATETIME_EPOCH(j) {j = DT_EPOCH;}
+#if defined(linux) && defined(PPC)
+extern int datetime_is_epoch(double j);
+#define DATETIME_IS_EPOCH(j) datetime_is_epoch(j)
+#else
#define DATETIME_IS_EPOCH(j) (j == DT_EPOCH)
+#endif
#define DATETIME_IS_RELATIVE(j) (DATETIME_IS_CURRENT(j) || DATETIME_IS_EPOCH(j))
#define DATETIME_NOT_FINITE(j) (DATETIME_IS_INVALID(j) \