summaryrefslogtreecommitdiffstats
path: root/tdelirc
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-06-27 15:02:37 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-06-27 15:02:37 +0200
commit421c249f1ff8e75ce646b6d94c0e0a141b30f2a8 (patch)
tree2ae6be28ab11cfcb6087001e62842b7da5a6c984 /tdelirc
parent5e3fd5744622dd3d7030427611f7ae588dc72dc6 (diff)
downloadtdeutils-421c249f1ff8e75ce646b6d94c0e0a141b30f2a8.tar.gz
tdeutils-421c249f1ff8e75ce646b6d94c0e0a141b30f2a8.zip
Fix build on freebsd
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdelirc')
-rw-r--r--tdelirc/irkick/tdelircclient.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tdelirc/irkick/tdelircclient.cpp b/tdelirc/irkick/tdelircclient.cpp
index feb69cb..ee00c88 100644
--- a/tdelirc/irkick/tdelircclient.cpp
+++ b/tdelirc/irkick/tdelircclient.cpp
@@ -55,7 +55,11 @@ bool KLircClient::connectToLirc()
sockaddr_un addr;
addr.sun_family = AF_UNIX;
+#if defined(__FreeBSD__)
+ strcpy(addr.sun_path, "/var/run/lirc/lircd");
+#else
strcpy(addr.sun_path, "/dev/lircd");
+#endif
if(::connect(sock, (struct sockaddr *)(&addr), sizeof(addr)) == -1)
{ ::close(sock);
// in case of mandrake...