Fail early when sem_open not found in semaphore.h.

This commit is contained in:
Patrick Mahoney 2011-12-12 20:14:10 -06:00
parent f2dc5dfe9a
commit 3e9f48e2c7
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ if have_func('sem_open', 'semaphore.h')
end
have_library('rt', 'sem_open')
else
abort('Win32 or platform without sem_open not supported (yet?)')
end
c_sources = ['psem.c', 'psem_error.c', 'psem_posix.c', 'bsem.c', 'constants.c']