$OpenBSD: patch-main_c,v 1.3 2008/06/09 22:54:38 martynas Exp $
--- main.c.orig	Sun Feb 17 15:43:58 2008
+++ main.c	Tue Mar 18 13:56:06 2008
@@ -142,6 +142,10 @@ void badOption (const char * arg) {
 }
 
 int main (int argc, char *argv[]) {
+#ifdef SIGWINCH
+	struct sigaction act;
+#endif
+
 	int autoupdate = 0;		/* Automatically update feeds on app start... or not if set to 0. */
 	int numfeeds;			/* Number of feeds loaded from Config(). */
 	int i = 0;	
@@ -202,6 +206,14 @@ int main (int argc, char *argv[]) {
 	/* Call the reaper */
 	signal (SIGCHLD, sigChildHandler);
 	
+#ifdef SIGWINCH
+	/* Set up SIGWINCH handler */
+	sigemptyset(&act.sa_mask);
+	act.sa_flags = 0;
+	act.sa_handler = sig_winch;
+	sigaction(SIGWINCH, &act, NULL);
+#endif
+
 	InitCurses();
 	
 	/* Check if configfiles exist and create/read them. */
