mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
build: Add test for HAVE_BROKEN_POSIX_FALLOCATE to waf build
This was previously only in the autoconf build, added in 3264a98f
.
Andrew Bartlett
This commit is contained in:
parent
fcd1aa82ac
commit
659f588c7a
@ -803,6 +803,19 @@ int i; i = PAM_RADIO_TYPE;
|
||||
execute=True,
|
||||
msg='Checking whether fcntl locking is available')
|
||||
|
||||
# glibc up to 2.3.6 had dangerously broken posix_fallocate(). DON'T USE IT.
|
||||
if not conf.CHECK_CODE('''
|
||||
#define _XOPEN_SOURCE 600
|
||||
#include <stdlib.h>
|
||||
#if defined(__GLIBC__) && ((__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4))
|
||||
#error probably broken posix_fallocate
|
||||
#endif
|
||||
''',
|
||||
'_HAVE_UNBROKEN_POSIX_FALLOCATE',
|
||||
msg='for broken posix_fallocate'):
|
||||
conf.DEFINE('HAVE_BROKEN_POSIX_FALLOCATE', '1')
|
||||
|
||||
|
||||
conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_mtim.tv_nsec',
|
||||
define='HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC') # Linux, Solaris
|
||||
conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_mtimensec',
|
||||
|
Loading…
Reference in New Issue
Block a user