summaryrefslogtreecommitdiffstats
path: root/tdelirc/irkick
diff options
context:
space:
mode:
Diffstat (limited to 'tdelirc/irkick')
-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...