From 5a38a119b22fb7206be7124cee9caa7a6769486f Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Mon, 28 Jul 1997 00:13:39 +0000
Subject: [PATCH] Remove sparc dir, add difftime macro for sunos.

---
 src/backend/utils/adt/timestamp.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/backend/utils/adt/timestamp.c b/src/backend/utils/adt/timestamp.c
index 58113955e5a..f69fa0f3a73 100644
--- a/src/backend/utils/adt/timestamp.c
+++ b/src/backend/utils/adt/timestamp.c
@@ -6,6 +6,11 @@
 #include "miscadmin.h"
 #include "utils/builtins.h"
 
+/* sunos doesn't have this function */
+#if defined(sunos)
+#define difftime(time1,time0)  ((time1) - (time0))
+#endif
+
 #if FALSE
 /* copy the next part of the string into a buffer */
 static const char *
-- 
GitLab