summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-22 05:35:14 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-22 05:35:14 +0800
commit51a562cbe6edbf815704dba32d25924fd99d683f (patch)
tree6b10d0ae3af697f118aee4ebffa36bd9c0b96dc8
parentfa9db1dffb95030960c388d35e34bcce71c87701 (diff)
downloadpttbbs-51a562cbe6edbf815704dba32d25924fd99d683f.tar
pttbbs-51a562cbe6edbf815704dba32d25924fd99d683f.tar.gz
pttbbs-51a562cbe6edbf815704dba32d25924fd99d683f.tar.bz2
pttbbs-51a562cbe6edbf815704dba32d25924fd99d683f.tar.lz
pttbbs-51a562cbe6edbf815704dba32d25924fd99d683f.tar.xz
pttbbs-51a562cbe6edbf815704dba32d25924fd99d683f.tar.zst
pttbbs-51a562cbe6edbf815704dba32d25924fd99d683f.zip
add signal WINDOW_RESIZE for linux
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1804 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/bbs.h1
-rw-r--r--mbbsd/term.c4
2 files changed, 1 insertions, 4 deletions
diff --git a/include/bbs.h b/include/bbs.h
index 20e4f091..075db9a7 100644
--- a/include/bbs.h
+++ b/include/bbs.h
@@ -45,6 +45,7 @@
#endif
#ifdef __linux__
#include <sys/param.h>
+ #include <sys/ioctl.h>
#include <limits.h>
#include <sys/file.h> /* for flock() */
#include <strings.h> /* for strcasecmp() */
diff --git a/mbbsd/term.c b/mbbsd/term.c
index 54acc2a6..555840d1 100644
--- a/mbbsd/term.c
+++ b/mbbsd/term.c
@@ -52,7 +52,6 @@ outcf(int ch)
}
#endif
-#ifndef __linux__
static void
term_resize(int sig)
{
@@ -85,14 +84,11 @@ term_resize(int sig)
signal(SIGWINCH, term_resize);
}
-#endif
int
term_init()
{
-#ifndef __linux__
signal(SIGWINCH, term_resize);
-#endif
return YEA;
}