diff options
| author | root <root> | 2011-08-08 22:00:18 +0000 | 
|---|---|---|
| committer | root <root> | 2011-08-08 22:00:18 +0000 | 
| commit | 128d4e8c4a9103fe5a02682de89c6a660ff2a5d3 (patch) | |
| tree | ae4f02e7f9c076a41c5330a7a5557565e700cc2a | |
| parent | f3c8c7a09a526eb36fcbfcb70728c14e4ea2e46b (diff) | |
| -rw-r--r-- | coro.c | 3 | ||||
| -rw-r--r-- | coro.h | 3 | 
2 files changed, 5 insertions, 1 deletions
| @@ -438,6 +438,9 @@ coro_create (coro_context *ctx, coro_func coro, void *arg, void *sptr, long ssiz  #if __UCLIBC__        /* exists, but is borked */        /*pthread_attr_setstacksize (&attr, (size_t)ssize);*/ +#elif __CYGWIN__ +      /* POSIX, not here */ +      pthread_attr_setstacksize (&attr, (size_t)ssize);  #else        pthread_attr_setstack (&attr, sptr, (size_t)ssize);  #endif @@ -1,5 +1,5 @@  /* - * Copyright (c) 2001-2009 Marc Alexander Lehmann <schmorp@schmorp.de> + * Copyright (c) 2001-2011 Marc Alexander Lehmann <schmorp@schmorp.de>   *    * Redistribution and use in source and binary forms, with or without modifica-   * tion, are permitted provided that the following conditions are met: @@ -74,6 +74,7 @@   *            use .cfi_undefined rip on linux-amd64 for better backtraces.   * 2011-06-08 maybe properly implement weird windows amd64 calling conventions.   * 2011-07-03 rely on __GCC_HAVE_DWARF2_CFI_ASM for cfi detection. + * 2011-08-08 cygwin trashes stacks, use pthreads with double stack on cygwin.   */  #ifndef CORO_H | 
