id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
3971	Tests: error: unknown type name 'sighandler_t' on illumos	mnowak	andrew_b	"I build Midnight Commander 4.8.22 test suite on OpenIndiana 2018.10 (illumos kernel) and the it fails with:

{{{
  CC       utilunix__my_system-fork_fail.o
In file included from /export/home/newman/ws/oi-userland/components/sysutils/mc/mc-4.8.22/tests/lib/utilunix__my_system-fork_fail.c:36:0:
/export/home/newman/ws/oi-userland/components/sysutils/mc/mc-4.8.22/tests/lib/utilunix__my_system-common.c:126:8: error: unknown type name 'sighandler_t'
 static sighandler_t signal__return_value = NULL;
        ^~~~~~~~~~~~
/export/home/newman/ws/oi-userland/components/sysutils/mc/mc-4.8.22/tests/lib/utilunix__my_system-common.c:126:44: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
 static sighandler_t signal__return_value = NULL;
                                            ^~~~
/export/home/newman/ws/oi-userland/components/sysutils/mc/mc-4.8.22/tests/lib/utilunix__my_system-common.c:129:1: error: unknown type name 'sighandler_t'
 sighandler_t
 ^~~~~~~~~~~~
/export/home/newman/ws/oi-userland/components/sysutils/mc/mc-4.8.22/tests/lib/utilunix__my_system-common.c:130:21: error: unknown type name 'sighandler_t'
 signal (int signum, sighandler_t handler)
                     ^~~~~~~~~~~~
/export/home/newman/ws/oi-userland/components/sysutils/mc/mc-4.8.22/tests/lib/utilunix__my_system-common.c: In function 'setup':
/export/home/newman/ws/oi-userland/components/sysutils/mc/mc-4.8.22/tests/lib/utilunix__my_system-common.c:305:26: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
     signal__return_value = NULL;
                          ^
make[5]: *** [Makefile:897: utilunix__my_system-fork_fail.o] Error 1

The problem seems to be that on illumos we don't have the sighandler_t GNU extension in our signal.h.
}}}

Can it be implemented differently? Can it be removed from compilation on platforms not supporting this GNU extension so test can be run?"	defect	closed	major	4.8.23	tests	4.8.22	fixed					merged	committed-master
