blob: a4f3924f96de642064677ebea8d3d28365024ba8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef OSX_COMPATIBILITY__H
#define OSX_COMPATIBILITY__H
#ifdef __APPLE__
#ifndef TEMP_FAILURE_RETRY
#define TEMP_FAILURE_RETRY(expression) \
(__extension__ \
({ long int __result; \
do __result = (long int) (expression); \
while (__result == -1L && errno == EINTR); \
__result; }))
#endif
#include <sched.h>
#define pthread_yield() sched_yield()
#endif /* __APPLE__ */
#endif
|