fix problem with KEY_RESIZE's not being defined on SunOS 5.7 and 5.8

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1566 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2003-10-10 04:38:17 +00:00
parent f5b256bb9f
commit bb7e2cbfad
1 changed files with 12 additions and 4 deletions

View File

@ -50,8 +50,6 @@
#include <slcurses.h> #include <slcurses.h>
#define KEY_DC SL_KEY_DELETE #define KEY_DC SL_KEY_DELETE
#define KEY_IC SL_KEY_IC #define KEY_IC SL_KEY_IC
#define KEY_RESIZE -1
#define KEY_SUSPEND -1
#elif defined(HAVE_NCURSES_H) #elif defined(HAVE_NCURSES_H)
#include <ncurses.h> #include <ncurses.h>
#else /* Uh oh */ #else /* Uh oh */
@ -94,11 +92,21 @@
/* HP-UX 10 & 11 do not seem to support KEY_HOME and KEY_END */ /* HP-UX 10 & 11 do not seem to support KEY_HOME and KEY_END */
#ifndef KEY_HOME #ifndef KEY_HOME
#define KEY_HOME -1 #define KEY_HOME -1
#endif /* KEY_HOME */ #endif
#ifndef KEY_END #ifndef KEY_END
#define KEY_END -1 #define KEY_END -1
#endif /* KEY_END */ #endif
/* Slang and SunOS 5.7 & 5.8 do not seem to support KEY_RESIZE */
#ifndef KEY_RESIZE
#define KEY_RESIZE -1
#endif
/* Slang does not seem to support KEY_SUSPEND */
#ifndef KEY_SUSPEND
#define KEY_SUSPEND -1
#endif
/* Snatch these out of the ncurses defs, so we can use them in search /* Snatch these out of the ncurses defs, so we can use them in search
history regardless of whether we're using ncurses or not */ history regardless of whether we're using ncurses or not */