LibCecSharp: fixed - set the primary LA in CecLogicalAddresses
[deb_libcec.git] / src / lib / platform / posix / serialport.cpp
index 3764a1567f9673a26aedfaa0ba1192cfe4884145..c1b3b22461bbc002b0dfc788573fc8ede862002d 100644 (file)
  *     http://www.pulse-eight.net/
  */
 
-#include "../os.h"
+#include "env.h"
 #include <stdio.h>
 #include <fcntl.h>
-#include "../sockets/serialport.h"
-#include "../util/baudrate.h"
-#include "../posix/os-socket.h"
+#include "lib/platform/sockets/serialport.h"
+#include "lib/platform/util/baudrate.h"
+#include "lib/platform/posix/os-socket.h"
 
 #if defined(__APPLE__) || defined(__FreeBSD__)
 #ifndef XCASE
@@ -58,6 +58,9 @@ inline bool RemoveLock(const char *strDeviceName)
 {
   #if !defined(__APPLE__) && !defined(__FreeBSD__)
   return dev_unlock(strDeviceName, 0) == 0;
+  #else
+  void *tmp = (void*)strDeviceName; // silence unused warning
+  return true;
   #endif
 }