From 4f82ab4c97228eb5cb9de4719def9663b254eda9 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter_e@gmx.net>
Date: Sat, 28 Oct 2000 23:53:01 +0000
Subject: [PATCH] #define JMP_BUF has been unnecessary since the arrival of the
 sigsetjmp test.

---
 src/backend/utils/error/exc.c |  6 +-----
 src/include/port/hpux.h       |  1 -
 src/include/port/linux.h      |  1 -
 src/include/port/nextstep.h   |  2 --
 src/include/port/win.h        |  1 -
 src/include/port/win32.h      |  2 --
 src/include/utils/exc.h       | 15 +++------------
 7 files changed, 4 insertions(+), 24 deletions(-)

diff --git a/src/backend/utils/error/exc.c b/src/backend/utils/error/exc.c
index 0f1d834f92a..069e63c35bc 100644
--- a/src/backend/utils/error/exc.c
+++ b/src/backend/utils/error/exc.c
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.31 2000/10/03 03:11:22 momjian Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.32 2000/10/28 23:53:00 petere Exp $
  *
  * NOTE
  *	  XXX this code needs improvement--check for state violations and
@@ -203,10 +203,6 @@ ExcRaise(Exception *excP,
 
 		ExcCurFrameP = efp->link;
 
-#if defined (JMP_BUF)
-		longjmp(efp->context, 1);
-#else
 		siglongjmp(efp->context, 1);
-#endif
 	}
 }
diff --git a/src/include/port/hpux.h b/src/include/port/hpux.h
index 4ef01af0958..b265d4173f4 100644
--- a/src/include/port/hpux.h
+++ b/src/include/port/hpux.h
@@ -1,4 +1,3 @@
-#define JMP_BUF
 #define USE_POSIX_TIME
 #define HAS_TEST_AND_SET
 typedef struct
diff --git a/src/include/port/linux.h b/src/include/port/linux.h
index 3555aba6d04..366932122c5 100644
--- a/src/include/port/linux.h
+++ b/src/include/port/linux.h
@@ -4,7 +4,6 @@
    __USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to
    be used.
 */
-#define JMP_BUF
 #define USE_POSIX_TIME
 
 #if defined(__i386__)
diff --git a/src/include/port/nextstep.h b/src/include/port/nextstep.h
index 40451da12b2..c21594dcadb 100644
--- a/src/include/port/nextstep.h
+++ b/src/include/port/nextstep.h
@@ -12,9 +12,7 @@ typedef int sigset_t;
 #define SIG_BLOCK	  00
 #define SIG_UNBLOCK   01
 #define SIG_SETMASK   02
-#define NEED_SIG_JMP
 #endif
 
-#define JMP_BUF
 #define NO_WAITPID
 typedef struct mutex slock_t;
diff --git a/src/include/port/win.h b/src/include/port/win.h
index 61acdb3e21e..f30979fd221 100644
--- a/src/include/port/win.h
+++ b/src/include/port/win.h
@@ -1,4 +1,3 @@
-#define JMP_BUF
 #define HAS_TEST_AND_SET
 typedef unsigned char slock_t;
 
diff --git a/src/include/port/win32.h b/src/include/port/win32.h
index 59bd010afc8..c9bf62784be 100644
--- a/src/include/port/win32.h
+++ b/src/include/port/win32.h
@@ -1,4 +1,2 @@
-#define JMP_BUF
-#define NEED_SIG_JMP
 #define USES_WINSOCK
 #define NOFILE		  100
diff --git a/src/include/utils/exc.h b/src/include/utils/exc.h
index 566e3bdc5ab..8b2fc4723a9 100644
--- a/src/include/utils/exc.h
+++ b/src/include/utils/exc.h
@@ -7,31 +7,22 @@
  * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $Id: exc.h,v 1.16 2000/01/26 05:58:38 momjian Exp $
+ * $Id: exc.h,v 1.17 2000/10/28 23:53:01 petere Exp $
  *
  *-------------------------------------------------------------------------
  */
 #ifndef EXC_H
 #define EXC_H
 
-#include <setjmp.h>
-
 #include "config.h"
 
+#include <setjmp.h>
+
 extern char *ExcFileName;
 extern Index ExcLineNumber;
 
-/*
- * ExcMessage and Exception are now defined in c.h
- */
-#if defined(JMP_BUF)
-typedef jmp_buf ExcContext;
-
-#else
 typedef sigjmp_buf ExcContext;
 
-#endif
-
 typedef Exception *ExcId;
 typedef long ExcDetail;
 typedef char *ExcData;
-- 
GitLab