* libc/include/signal.h (sighandler_t): Only define if _POSIX_SOURCE
is undefined.
This commit is contained in:
parent
cc077128d3
commit
3f45333072
|
@ -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>
|
2010-07-06 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* libc/posix/rewinddir.c (rewinddir): Remove incorrect cast to off_t.
|
* libc/posix/rewinddir.c (rewinddir): Remove incorrect cast to off_t.
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
_BEGIN_STD_C
|
_BEGIN_STD_C
|
||||||
|
|
||||||
typedef int sig_atomic_t; /* Atomic entity type (ANSI) */
|
typedef int sig_atomic_t; /* Atomic entity type (ANSI) */
|
||||||
|
#ifndef _POSIX_SOURCE
|
||||||
typedef _sig_func_ptr sighandler_t; /* glibc naming */
|
typedef _sig_func_ptr sighandler_t; /* glibc naming */
|
||||||
|
#endif /* !_POSIX_SOURCE */
|
||||||
|
|
||||||
#define SIG_DFL ((_sig_func_ptr)0) /* Default action */
|
#define SIG_DFL ((_sig_func_ptr)0) /* Default action */
|
||||||
#define SIG_IGN ((_sig_func_ptr)1) /* Ignore action */
|
#define SIG_IGN ((_sig_func_ptr)1) /* Ignore action */
|
||||||
|
|
Loading…
Reference in New Issue