summaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorDenys Vlasenko2011-05-12 23:03:18 +0200
committerDenys Vlasenko2011-05-12 23:03:18 +0200
commit89f5bfd6c38cf76823b49628b09b4cd7b1ecb301 (patch)
tree17397d9091ed043c6841f80ce9d0cb87e1422145 /include/libbb.h
parent279a7ac04ee3e1e1597f46e144fa6da2dac90541 (diff)
downloadbusybox-89f5bfd6c38cf76823b49628b09b4cd7b1ecb301.zip
busybox-89f5bfd6c38cf76823b49628b09b4cd7b1ecb301.tar.gz
libbb.h: use inlined sigfillset, sigemptyset, sigisemptyset on uclibc
text data bss dec hex filename 875879 493 7584 883956 d7cf4 busybox_old 875879 493 7584 883956 d7cf4 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 56dfa61..4232c38 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -20,6 +20,12 @@
#include <netdb.h>
#include <setjmp.h>
#include <signal.h>
+#if defined __UCLIBC__ /* TODO: and glibc? */
+/* use inlined versions of these: */
+# define sigfillset(s) __sigfillset(s)
+# define sigemptyset(s) __sigemptyset(s)
+# define sigisemptyset(s) __sigisemptyset(s)
+#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>