diff options
| author | root <root> | 2007-04-27 19:35:28 +0000 | 
|---|---|---|
| committer | root <root> | 2007-04-27 19:35:28 +0000 | 
| commit | 0cfd3b56792a5d7145f300ef14574f820fce3f06 (patch) | |
| tree | 033a64ca86d0ef4972bbda1e7929c6fd5c1879c4 /coro.h | |
| parent | 98929e8018371c8847c69ea1ed8e88f82b5df83a (diff) | |
*** empty log message ***rel-3_62
Diffstat (limited to 'coro.h')
| -rw-r--r-- | coro.h | 3 | 
1 files changed, 2 insertions, 1 deletions
@@ -40,6 +40,7 @@   *            Reported by Michael_G_Schwern.   * 2006-11-26 Use _setjmp instead of setjmp on GNU/Linux.   * 2007-04-27 Set unwind frame info if gcc 3+ and ELF is detected. + *            Use _setjmp instead of setjmp on _XOPEN_SOURCE >= 600.   */  #ifndef CORO_H @@ -174,7 +175,7 @@ struct coro_context {    jmp_buf env;  }; -#if CORO_LINUX +#if CORO_LINUX || (_XOPEN_SOURCE >= 600)  # define coro_transfer(p,n) do { if (!_setjmp ((p)->env)) _longjmp ((n)->env, 1); } while (0)  #else  # define coro_transfer(p,n) do { if (!setjmp  ((p)->env)) longjmp  ((n)->env, 1); } while (0)  | 
