sighandler_t compatibility issue with OpenBSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux