Fix errno usage and add DragonFly support

Signed-off-by: Masanori Ogino <mogino@acm.org>
This commit is contained in:
Jörg Sonnenberger 2005-12-02 22:57:32 +00:00 • committed by Masanori Ogino
commit 0a67b18647
10 changed files with 18 additions and 31 deletions

View file

@ -48,14 +48,12 @@
#include <sys/types.h>
#include <sys/fcntl.h>
#endif
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__)
#if defined(__NetBSD__) || defined(__bsdi__)
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__DragonFly__)
#define USE_OLD_TTY
#endif
#include <curses.h>
#endif
#include <sys/errno.h>
#include <errno.h>
#include <sys/file.h>
#include "sj2.h"
#include "select.h"
@ -72,7 +70,6 @@ static wchar16_t backup = (wchar16_t) 0;
static int eucmode = 0;
extern int master;
extern int errno;
wchar16_t SJ_getchar()
{