From dd2aba149c7176594a311cbc4c42065c3074c696 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 7 Mar 2010 23:41:29 +1100 Subject: build: check for RETSIGTYPE --- lib/replace/wscript | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/replace/wscript b/lib/replace/wscript index 05bf1ea06b..9312db4ac0 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -126,6 +126,11 @@ def configure(conf): ''', define='HAVE_IPV6') + # check if signal() takes a void function + if conf.CHECK_CODE('return *(signal (0, 0)) (0) == 1', define='RETSIGTYPE_INT', msg='Checking return type of signal handlers'): + conf.DEFINE('RETSIGTYPE', 'int') + else: + conf.DEFINE('RETSIGTYPE', 'void') conf.CHECK_FUNCS('shl_load shl_unload shl_findsym') conf.CHECK_FUNCS('pipe strftime srandom random srand rand usleep setbuffer') -- cgit