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:03:02 +0200
commitbdc3d0f043ce4dbcf25867cb79b097e8d433f64f (patch)
tree03595ff3e53350f7dc552c5a3d548e774c4fa8dc /tdelirc
parent71d690a88f1fbbf94df42a9e479fabd036c676f7 (diff)
downloadtdeutils-bdc3d0f043ce4dbcf25867cb79b097e8d433f64f.tar.gz
tdeutils-bdc3d0f043ce4dbcf25867cb79b097e8d433f64f.zip
Fix build on freebsd
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 421c249f1ff8e75ce646b6d94c0e0a141b30f2a8)
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...