mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ctdb-build: Improve platform check
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
fb9c49f2ce
commit
d692be0363
@ -217,11 +217,11 @@ def build(bld):
|
|||||||
includes='include include/internal',
|
includes='include include/internal',
|
||||||
deps='replace tevent tdb')
|
deps='replace tevent tdb')
|
||||||
|
|
||||||
if sys.platform == 'linux2':
|
if sys.platform.startswith('linux'):
|
||||||
CTDB_SYSTEM_SRC = bld.SUBDIR('common', 'system_linux.c')
|
CTDB_SYSTEM_SRC = bld.SUBDIR('common', 'system_linux.c')
|
||||||
elif sys.platform == 'aix':
|
elif sys.platform.startswith('aix'):
|
||||||
CTDB_SYSTEM_SRC = bld.SUBDIR('common', 'system_aix.c')
|
CTDB_SYSTEM_SRC = bld.SUBDIR('common', 'system_aix.c')
|
||||||
elif sys.platform == 'freebsd':
|
elif sys.platform.startswith('freebsd'):
|
||||||
CTDB_SYSTEM_SRC = bld.SUBDIR('common', 'system_freebsd.c')
|
CTDB_SYSTEM_SRC = bld.SUBDIR('common', 'system_freebsd.c')
|
||||||
elif sys.platform == 'kfreebsd':
|
elif sys.platform == 'kfreebsd':
|
||||||
CTDB_SYSTEM_SRC = bld.SUBDIR('common', 'system_kfreebsd.c')
|
CTDB_SYSTEM_SRC = bld.SUBDIR('common', 'system_kfreebsd.c')
|
||||||
|
Loading…
Reference in New Issue
Block a user