summaryrefslogtreecommitdiffstats
path: root/tdm
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2014-10-18 13:59:20 +0200
committerSlávek Banko <[email protected]>2014-10-18 14:29:18 +0200
commita679541fd738df5118cdddca997bf9b9531fdfcf (patch)
tree7400c95961fa19204a53ff8148c02f98fb377662 /tdm
parent18b81de37b433e00f5b51323ee6569eb8068cf70 (diff)
downloadtdebase-a679541fd738df5118cdddca997bf9b9531fdfcf.tar.gz
tdebase-a679541fd738df5118cdddca997bf9b9531fdfcf.zip
Fix tdm backend fd support on openbsd
Signed-off-by: François Andriot <[email protected]>"
Diffstat (limited to 'tdm')
-rw-r--r--tdm/backend/getfd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tdm/backend/getfd.c b/tdm/backend/getfd.c
index 6bf8c8783..307b2501c 100644
--- a/tdm/backend/getfd.c
+++ b/tdm/backend/getfd.c
@@ -22,8 +22,12 @@ is_a_console(int fd) {
char arg;
arg = 0;
+#ifdef __OpenBSD__
+ return arg;
+#else
return (ioctl(fd, KDGKBTYPE, &arg) == 0
&& ((arg == KB_101) || (arg == KB_84)));
+#endif
}
static int