Teach libc5 what a sighandler_t is
authorEric Andersen <andersen@codepoet.org>
Thu, 2 Aug 2001 09:52:40 +0000 (09:52 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 2 Aug 2001 09:52:40 +0000 (09:52 -0000)
 -Erik

cmdedit.c
shell/cmdedit.c

index 6386ea042e8c49cf67bd24bf683e5fe816bcf298..16ec2f823323491ff3cdedad97c073bb5f976d51 100644 (file)
--- 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);
 
index 6386ea042e8c49cf67bd24bf683e5fe816bcf298..16ec2f823323491ff3cdedad97c073bb5f976d51 100644 (file)
@@ -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);