]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/netbsd-tests/lib/libpthread/h_common.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / netbsd-tests / lib / libpthread / h_common.h
1 #ifndef H_COMMON_H
2 #define H_COMMON_H
3
4 #include <string.h>
5
6 #define PTHREAD_REQUIRE(x) \
7     do { \
8         int ret = (x); \
9         ATF_REQUIRE_MSG(ret == 0, "%s: %s", #x, strerror(ret)); \
10     } while (0)
11
12 #endif // H_COMMON_H