[__GO32__]: Don't undef HANDLE_SIGNALS for DJGPP v2.x.
authorEli Zaretskii <eliz@gnu.org>
Wed, 15 Mar 2000 11:59:45 +0000 (11:59 +0000)
committerEli Zaretskii <eliz@gnu.org>
Wed, 15 Mar 2000 11:59:45 +0000 (11:59 +0000)
Don't declare sigwinch_set_flag if SIGWINCH is undefined.

readline/signals.c

index 3a34432f14317fcbc0297b5abab29ed82f0911f7..40e09121c5709c33709bb8a84d882d315bb5401c 100644 (file)
@@ -40,9 +40,9 @@
 #  include <sys/ioctl.h>
 #endif /* GWINSZ_IN_SYS_IOCTL */
 
-#if defined (__GO32__)
+#if defined (__GO32__) && !defined(__DJGPP__)
 #  undef HANDLE_SIGNALS
-#endif /* __GO32__ */
+#endif /* __GO32__  && !__DJGPP__ */
 
 #if defined (HANDLE_SIGNALS)
 /* Some standard library routines. */
@@ -93,7 +93,9 @@ int rl_catch_sigwinch = 1;
 #endif
 
 static int signals_set_flag;
+#ifdef SIGWINCH
 static int sigwinch_set_flag;
+#endif
 
 /* **************************************************************** */
 /*                                                                 */