Signed-off-by: yuncang123 <135211779+yuncang123@users.noreply.github.com>
}
'''
-have_func_strerror_r_char_p = cc.compiles(code, name : 'strerror_r() returns char *')
+ if cc.get_id() == 'clang'
+ have_func_strerror_r_char_p = cc.compiles(code, args : '-Wno-error=unused-command-line-argument', name : 'strerror_r() returns char *')
+ else
+ have_func_strerror_r_char_p = cc.compiles(code, name : 'strerror_r() returns char *')
+ endif
endif
srcconf.set10('STRERROR_R_CHAR_P', have_func_strerror_r_char_p)