Teach libc5 what a sighandler_t is
[oweals/busybox.git] / shell / cmdedit.c
index 2ec81548d353f99ffff69953d9503a0e4ad02209..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);
 
@@ -1228,7 +1232,7 @@ int cmdedit_read_input(char *prompt, char command[BUFSIZ])
                         * if the len=0 and no chars to delete */
                        if (len == 0) {
 prepare_to_die:
-#if !defined(BB_FEATURE_ASH)
+#if !defined(BB_ASH)
                                printf("exit");
                                goto_new_line();
                                /* cmdedit_reset_term() called in atexit */