diff options
author | François Andriot <francois.andriot@free.fr> | 2014-10-18 13:59:20 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-10-18 14:29:18 +0200 |
commit | a679541fd738df5118cdddca997bf9b9531fdfcf (patch) | |
tree | 7400c95961fa19204a53ff8148c02f98fb377662 /tdm | |
parent | 18b81de37b433e00f5b51323ee6569eb8068cf70 (diff) | |
download | tdebase-a679541fd738df5118cdddca997bf9b9531fdfcf.tar.gz tdebase-a679541fd738df5118cdddca997bf9b9531fdfcf.zip |
Fix tdm backend fd support on openbsd
Signed-off-by: François Andriot <francois.andriot@free.fr>"
Diffstat (limited to 'tdm')
-rw-r--r-- | tdm/backend/getfd.c | 4 |
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 |