diff options
| author | Petr Mrázek | 2012-06-14 00:00:36 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2012-06-14 00:00:36 +0200 |
| commit | 52f9fe4a6a4dd788d902cad1a594ed5d8febcfd3 (patch) | |
| tree | 683a0967e675423b0a747880d25a8f932d5ab914 /library/Console-linux.cpp | |
| parent | 5e011ac217ae2e0804fdab77a12cdcd94208bc62 (diff) | |
| parent | 6d65683b02a7a78463d0b25e6cd56a7ae35d34cd (diff) | |
| download | dfhack-52f9fe4a6a4dd788d902cad1a594ed5d8febcfd3.tar.gz dfhack-52f9fe4a6a4dd788d902cad1a594ed5d8febcfd3.tar.bz2 dfhack-52f9fe4a6a4dd788d902cad1a594ed5d8febcfd3.tar.xz | |
Merge https://github.com/danaris/dfhack
Conflicts:
depends/clsocket
Diffstat (limited to 'library/Console-linux.cpp')
| -rw-r--r-- | library/Console-linux.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/library/Console-linux.cpp b/library/Console-linux.cpp index 24d13f42..a1ebfad3 100644 --- a/library/Console-linux.cpp +++ b/library/Console-linux.cpp @@ -60,6 +60,15 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <errno.h> #include <deque> +// George Vulov for MacOSX +#ifndef __LINUX__ +#define TEMP_FAILURE_RETRY(expr) \ + ({ long int _res; \ + do _res = (long int) (expr); \ + while (_res == -1L && errno == EINTR); \ + _res; }) +#endif + #include "Console.h" #include "Hooks.h" using namespace DFHack; |
