sighandler_t compatibility issue with OpenBSD

Björn Ketelaars bjorn.ketelaars at hydroxide.nl
Sat Feb 20 05:41:35 PST 2016


Both OpenBSD and FreeBSD use sig_t instead of sighandler_t. This is kind of an
issue for src/occtl/unix.c. Fortunate for us src/common/system.h (which is
included in unix.c) takes great care of handling sighandler_t/sig_t. Proposed
fix:


--- src/occtl/unix.c.orig	Thu Jan 28 13:53:21 2016
+++ src/occtl/unix.c	Sat Feb 20 14:12:08 2016
@@ -1071,7 +1071,7 @@ int handle_events_cmd(struct unix_ctx *ctx, const char
 	char tmpbuf[MAX_TMPSTR_SIZE];
 	PROTOBUF_ALLOCATOR(pa, ctx);
 	struct termios tio_old, tio_new;
-	sighandler_t old_sighandler;
+	SIGHANDLER_T old_sighandler;
 
 	init_reply(&raw);
 


-- 
Björn Ketelaars
GPG key: 0x4F0E5F21



More information about the openconnect-devel mailing list