diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-22 15:24:13 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-22 15:24:13 +0200 |
commit | 251a3c19cb4bba47fcd38c697b3d7679b3edb137 (patch) | |
tree | c820adadbd44dfdb4ebcba83f90c5f5bf09b7b3a /libc/unistd/sleep.c | |
parent | 62fb840ea00d9d10446959d290d93a45065220f4 (diff) |
sleep: employ __USE_EXTERN_INLINES (with necessary fixes)
__USE_EXTERN_INLINES was unused and had bit-rotted, had to fix it
when it didn't work as intended at first.
text data bss dec hex filename
- 168 0 0 168 a8 libc/unistd/sleep.o
+ 146 0 0 146 92 libc/unistd/sleep.o
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'libc/unistd/sleep.c')
-rw-r--r-- | libc/unistd/sleep.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/unistd/sleep.c b/libc/unistd/sleep.c index 481e635a2..438f5e282 100644 --- a/libc/unistd/sleep.c +++ b/libc/unistd/sleep.c @@ -20,8 +20,13 @@ #include <errno.h> #include <time.h> -#include <signal.h> #include <unistd.h> +/* Want fast and small __sigemptyset/__sigaddset/__sigismember: */ +/* TODO: make them available (to everybody) without this hack */ +#ifndef __USE_EXTERN_INLINES +# define __USE_EXTERN_INLINES 1 +#endif +#include <signal.h> |