--- libcoro/coro.h 2004/04/01 03:11:15 1.7 +++ libcoro/coro.h 2005/03/21 14:38:14 1.10 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001 Marc Alexander Lehmann + * Copyright (c) 2001-2005 Marc Alexander Lehmann * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: @@ -33,15 +33,16 @@ * build your own process abstraction using it or - better - just use GNU * Portable Threads, http://www.gnu.org/software/pth/. * - * VERSION: 0.1 */ #ifndef CORO_H #define CORO_H +#define CORO_VERSION 1 + /* * This library consists of only three files - * coro.h, coro.c and LICENSE + * coro.h, coro.c and LICENSE (and optionally README) * * It implements what is known as coroutines, in a hopefully * portable way. At the moment you have to define which kind @@ -149,6 +150,10 @@ #elif CORO_SJLJ || CORO_LOOSE || CORO_LINUX || CORO_IRIX +#if defined(CORO_LINUX) && !defined(_GNU_SOURCE) +# define _GNU_SOURCE // for linux libc +#endif + #include struct coro_context {