summaryrefslogtreecommitdiffstats
path: root/tdm/backend/getfd.c
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2015-06-12 02:56:58 +0200
committerSlávek Banko <[email protected]>2015-06-12 02:56:58 +0200
commit08122b137e76ffcf7067f634a7668002732e11d9 (patch)
tree30507bd9b39b46525b8941f1986dff2fa30f03af /tdm/backend/getfd.c
parente1d8ccc637042d5ab84b0d532590f4cf8ef8e567 (diff)
downloadtdebase-08122b137e76ffcf7067f634a7668002732e11d9.tar.gz
tdebase-08122b137e76ffcf7067f634a7668002732e11d9.zip
Fix FTBFS on freebsd
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tdm/backend/getfd.c')
-rw-r--r--tdm/backend/getfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdm/backend/getfd.c b/tdm/backend/getfd.c
index 307b2501c..d4f4d8352 100644
--- a/tdm/backend/getfd.c
+++ b/tdm/backend/getfd.c
@@ -22,7 +22,7 @@ is_a_console(int fd) {
char arg;
arg = 0;
-#ifdef __OpenBSD__
+#if defined(__OpenBSD__) || defined(__FreeBSD__)
return arg;
#else
return (ioctl(fd, KDGKBTYPE, &arg) == 0