summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-07 23:41:29 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:45 +1000
commitdd2aba149c7176594a311cbc4c42065c3074c696 (patch)
tree57c3ebdc6c486363e71ace4702445de0cd16546f /lib/replace
parent58049e7f16c59646576a695cdbd5a6e03bf8f106 (diff)
downloadsamba-dd2aba149c7176594a311cbc4c42065c3074c696.tar.gz
samba-dd2aba149c7176594a311cbc4c42065c3074c696.tar.bz2
samba-dd2aba149c7176594a311cbc4c42065c3074c696.zip
build: check for RETSIGTYPE
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/wscript5
1 files changed, 5 insertions, 0 deletions
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')