waf: ensure we don't try to use non-implemented functions

This commit is contained in:
Andrew Tridgell 2022-10-04 20:12:36 +11:00 committed by Randy Mackay
parent 29dca0f915
commit bc35b3145c
1 changed files with 2 additions and 1 deletions

View File

@ -704,6 +704,7 @@ def build(bld):
'fiprintf','printf',
'fopen', 'fflush', 'fwrite', 'fread', 'fputs', 'fgets',
'clearerr', 'fseek', 'ferror', 'fclose', 'tmpfile', 'getc', 'ungetc', 'feof',
'ftell', 'freopen', 'remove', 'vfprintf', 'fscanf' ]
'ftell', 'freopen', 'remove', 'vfprintf', 'fscanf',
'_gettimeofday', '_times', '_times_r', '_gettimeofday_r', 'time', 'clock' ]
for w in wraplist:
bld.env.LINKFLAGS += ['-Wl,--wrap,%s' % w]