From 40c083228c3be879599186fb89a53277a0efaf30 Mon Sep 17 00:00:00 2001 From: Paul Park Date: Tue, 8 Aug 1995 22:00:43 +0000 Subject: [PATCH] Use sigjmp_buf under POSIX_SETJMP git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6462 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/v5server/proto_serv.c | 6 +++++- src/kadmin/v5server/srv_main.c | 6 +++++- src/kadmin/v5server/srv_net.c | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/kadmin/v5server/proto_serv.c b/src/kadmin/v5server/proto_serv.c index 0876dfe3c..fe906c4ff 100644 --- a/src/kadmin/v5server/proto_serv.c +++ b/src/kadmin/v5server/proto_serv.c @@ -52,7 +52,11 @@ extern char *programname; static int proto_proto_timeout = -1; static int proto_debug_level = 0; -static jmp_buf timeout_jmp; +#if POSIX_SETJMP +static sigjmp_buf timeout_jmp; +#else /* POSIX_SETJMP */ +static jmp_buf timeout_jmp; +#endif /* POSIX_SETJMP */ static krb5_sigtype proto_alarmclock(signo) diff --git a/src/kadmin/v5server/srv_main.c b/src/kadmin/v5server/srv_main.c index db705e91f..88e191235 100644 --- a/src/kadmin/v5server/srv_main.c +++ b/src/kadmin/v5server/srv_main.c @@ -64,7 +64,11 @@ static const char *key_msg = "key and database"; static const char *server_name_msg = "Kerberos V5 administrative server"; char *programname = (char *) NULL; -static jmp_buf terminal_jmp; +#if POSIX_SETJMP +static sigjmp_buf terminal_jmp; +#else /* POSIX_SETJMP */ +static jmp_buf terminal_jmp; +#endif /* POSIX_SETJMP */ static void usage(prog) diff --git a/src/kadmin/v5server/srv_net.c b/src/kadmin/v5server/srv_net.c index 7df544497..29c421a0a 100644 --- a/src/kadmin/v5server/srv_net.c +++ b/src/kadmin/v5server/srv_net.c @@ -109,7 +109,11 @@ static int net_slaves_active = 0; static int net_max_slaves = 0; static net_slave_info *net_slave_table = (net_slave_info *) NULL; -static jmp_buf shutdown_jmp; +#if POSIX_SETJMP +static sigjmp_buf shutdown_jmp; +#else /* POSIX_SETJMP */ +static jmp_buf shutdown_jmp; +#endif /* POSIX_SETJMP */ extern char *programname; -- 2.26.2