Fix ncurses panel #include too
authorMikael Berthe <mikael@lilotux.net>
Sat, 08 Jul 2006 15:50:33 +0200
changeset 936 3e592fb33aab
parent 935 97e6a6da2b2c
child 937 548def60b810
Fix ncurses panel #include too
mcabber/src/screen.c
mcabber/src/screen.h
--- a/mcabber/src/screen.c	Sat Jul 08 15:32:55 2006 +0200
+++ b/mcabber/src/screen.c	Sat Jul 08 15:50:33 2006 +0200
@@ -23,7 +23,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <panel.h>
 #include <time.h>
 #include <ctype.h>
 #include <locale.h>
--- a/mcabber/src/screen.h	Sat Jul 08 15:32:55 2006 +0200
+++ b/mcabber/src/screen.h	Sat Jul 08 15:50:33 2006 +0200
@@ -5,12 +5,13 @@
 
 #if HAVE_NCURSESW_NCURSES_H
 # include <ncursesw/ncurses.h>
+# include <ncursesw/panel.h>
 #elif HAVE_NCURSES_NCURSES_H
 # include <ncurses/ncurses.h>
-#elif HAVE_NCURSES_H
+# include <ncurses/panel.h>
+#else
 # include <ncurses.h>
-#else
-# include <curses.h>
+# include <panel.h>
 #endif
 
 #include "logprint.h"