Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MacOSX: Fix wrong sem_destroy definition
The following build errors can be seen for MacOSX builds: .../osunixxf.c:882:9: error: 'sem_close' is deprecated [-Werror,-Wdeprecated-declarations] .../acmacosx.h:122:29: note: expanded from macro 'sem_destroy' #define sem_destroy sem_close sem_destroy() issue is caused by the wrong order of the following lines: #define #sem_destroy sem_close #include <semaphore.h> This patch fixes it by removing the buggy re-definitiion. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com>
- Loading branch information