cec: serial port locking on linux
[deb_libcec.git] / src / lib / platform / posix / os-types.h
index b8783b15e76d37f6aba75a9b3c144ba9624c4038..a365635490f66d4a7b46e86211404abe4ac60de3 100644 (file)
@@ -32,6 +32,7 @@
  */
 
 #define _FILE_OFFSET_BITS 64
+#include <unistd.h>
 #include <string.h>
 #include <errno.h>
 #include <sys/time.h>
 #include <semaphore.h>
 #include <stdint.h>
 
+extern "C" {
+#include <sys/types.h>
+}
+
 #define LIBTYPE
 #define DECLSPEC