[git commit master 1/1] sighandler_t definition for BSD
Denys Vlasenko
vda.linux at googlemail.com
Wed Jan 19 23:51:52 UTC 2011
commit: http://git.busybox.net/busybox/commit/?id=9ad97d504146db2ea6b6a1a23c96ca052c50e270
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Chris Rees <utisoft at gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
include/platform.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/platform.h b/include/platform.h
index 2666eeb..6328ff6 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -14,6 +14,7 @@
#define HAVE_MEMRCHR 1
#define HAVE_MKDTEMP 1
#define HAVE_SETBIT 1
+#define HAVE_SIGHANDLER_T 1
#define HAVE_STRCASESTR 1
#define HAVE_STRCHRNUL 1
#define HAVE_STRSEP 1
@@ -253,6 +254,7 @@ typedef uint32_t bb__aliased_uint32_t FIX_ALIASING;
|| defined __FreeBSD__ || defined __OpenBSD__ || defined __NetBSD__
# undef HAVE_MNTENT_H
# undef HAVE_SYS_STATFS_H
+# undef HAVE_SIGHANDLER_T
#else
# define HAVE_MNTENT_H 1
# define HAVE_SYS_STATFS_H 1
@@ -396,6 +398,10 @@ extern char *mkdtemp(char *template) FAST_FUNC;
# define clrbit(a, b) ((a)[(b) >> 3] &= ~(1 << ((b) & 7)))
#endif
+#ifndef HAVE_SIGHANDLER_T
+typedef void (*sighandler_t)(int);
+#endif
+
#ifndef HAVE_STRCASESTR
extern char *strcasestr(const char *s, const char *pattern) FAST_FUNC;
#endif
--
1.7.3.4
More information about the busybox-cvs
mailing list