* libc/include/signal.h (sighandler_t): Only define if _POSIX_SOURCE

is undefined.
This commit is contained in:
Corinna Vinschen 2010-07-13 11:18:55 +00:00
parent cc077128d3
commit 3f45333072
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-07-13 Corinna Vinschen <corinna@vinschen.de>
* libc/include/signal.h (sighandler_t): Only define if _POSIX_SOURCE
is undefined.
2010-07-06 Corinna Vinschen <corinna@vinschen.de>
* libc/posix/rewinddir.c (rewinddir): Remove incorrect cast to off_t.

View File

@ -7,7 +7,9 @@
_BEGIN_STD_C
typedef int sig_atomic_t; /* Atomic entity type (ANSI) */
#ifndef _POSIX_SOURCE
typedef _sig_func_ptr sighandler_t; /* glibc naming */
#endif /* !_POSIX_SOURCE */
#define SIG_DFL ((_sig_func_ptr)0) /* Default action */
#define SIG_IGN ((_sig_func_ptr)1) /* Ignore action */