From: Eric Andersen Date: Thu, 2 Aug 2001 09:52:40 +0000 (-0000) Subject: Teach libc5 what a sighandler_t is X-Git-Tag: 0_60_0~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95b520110dc1ee6ee670817fdd6312a8565cf34c;p=platform%2Fupstream%2Fbusybox.git Teach libc5 what a sighandler_t is -Erik --- diff --git a/cmdedit.c b/cmdedit.c index 6386ea0..16ec2f8 100644 --- a/cmdedit.c +++ b/cmdedit.c @@ -164,6 +164,10 @@ static int my_gid; #endif /* BB_FEATURE_COMMAND_TAB_COMPLETION */ +/* It seems that libc5 doesn't know what a sighandler_t is... */ +#if (__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1) +typedef void (*sighandler_t) (int); +#endif static void cmdedit_setwidth(int w, int redraw_flg); diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 6386ea0..16ec2f8 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c @@ -164,6 +164,10 @@ static int my_gid; #endif /* BB_FEATURE_COMMAND_TAB_COMPLETION */ +/* It seems that libc5 doesn't know what a sighandler_t is... */ +#if (__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1) +typedef void (*sighandler_t) (int); +#endif static void cmdedit_setwidth(int w, int redraw_flg);