aboutsummaryrefslogtreecommitdiff
path: root/src/osx_compatibility.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osx_compatibility.h')
-rw-r--r--src/osx_compatibility.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/osx_compatibility.h b/src/osx_compatibility.h
deleted file mode 100644
index 7169d7e..0000000
--- a/src/osx_compatibility.h
+++ /dev/null
@@ -1,27 +0,0 @@
1/*
2 * Copyright (C) 2007-2010 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
8#ifndef OSX_COMPATIBILITY__H
9#define OSX_COMPATIBILITY__H
10
11#ifdef __APPLE__
12
13#ifndef TEMP_FAILURE_RETRY
14#define TEMP_FAILURE_RETRY(expression) \
15 (__extension__ \
16 ({ long int __result; \
17 do __result = (long int) (expression); \
18 while (__result == -1L && errno == EINTR); \
19 __result; }))
20#endif
21
22#include <sched.h>
23
24#define pthread_yield() sched_yield()
25#endif /* __APPLE__ */
26#endif
27