Mercurial > flash_v2
diff packages/io/fileio/current/src/fio.h @ 1461:244c4e8297c2
* src/select.cxx: No need to make pselect() dependent on
CYGPKG_POSIX - that would depend on the arguments. Assert instead,
and more correctly make it contingent on CYGPKG_POSIX_SIGNALS.
* src/fio.h: Separate out signal functionality into its own separate
test.
| author | jlarmour |
|---|---|
| date | Wed, 07 Jan 2004 06:45:28 +0000 |
| parents | 6bb106b4ff93 |
| children | 0071b7b58596 |
line wrap: on
line diff
--- a/packages/io/fileio/current/src/fio.h +++ b/packages/io/fileio/current/src/fio.h @@ -92,13 +92,23 @@ // POSIX API support #ifdef CYGPKG_POSIX - +#include <pkgconf/posix.h> #include <cyg/posix/export.h> #define CYG_FILEIO_FUNCTION_START() CYG_POSIX_FUNCTION_START() #define CYG_FILEIO_FUNCTION_FINISH() CYG_POSIX_FUNCTION_FINISH() +#else + +#define CYG_FILEIO_FUNCTION_START() CYG_EMPTY_STATEMENT + +#define CYG_FILEIO_FUNCTION_FINISH() CYG_EMPTY_STATEMENT + +#endif + +#ifdef CYGPKG_POSIX_SIGNALS + #define CYG_FILEIO_SIGMASK_SET( __set, __oset ) \ CYG_PTHREAD_SIGMASK_SET( __set, __oset ) @@ -109,12 +119,7 @@ #else -#define CYG_FILEIO_FUNCTION_START() CYG_EMPTY_STATEMENT - -#define CYG_FILEIO_FUNCTION_FINISH() CYG_EMPTY_STATEMENT - -#define CYG_FILEIO_SIGMASK_SET( __set, __oset ) \ - CYG_UNUSED_PARAM(sigset_t *, __oset) +#define CYG_FILEIO_SIGMASK_SET( __set, __oset ) CYG_EMPTY_STATEMENT #define CYG_FILEIO_SIGPENDING() (0)
