Use sigjmp_buf under POSIX_SETJMP
authorPaul Park <pjpark@mit.edu>
Tue, 8 Aug 1995 22:00:43 +0000 (22:00 +0000)
committerPaul Park <pjpark@mit.edu>
Tue, 8 Aug 1995 22:00:43 +0000 (22:00 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6462 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/v5server/proto_serv.c
src/kadmin/v5server/srv_main.c
src/kadmin/v5server/srv_net.c

index 0876dfe3c2a9abfa96d908daf3d0efd79590886f..fe906c4fff1052e745fc9e1f9071aecf744c316b 100644 (file)
@@ -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)
index db705e91f79bce06332c1ccd7092b78f74143192..88e191235dcfd3461ea53345376d1e9178d18d31 100644 (file)
@@ -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 */
 \f
 static void
 usage(prog)
index 7df544497be89ab1dc1fd0a03047c5e65bd0b2fc..29c421a0a3595c4c007946a9457a6e714a44ec3b 100644 (file)
@@ -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;
 \f