cec: added guards in CSerialPort
[deb_libcec.git] / src / lib / platform / posix / os-types.h
index 631e96508e963a9cfb1b88184e463fc80527d837..b89b9cc2a57617f15ae69ddc5d9d65274cdd737c 100644 (file)
  */
 
 #define _FILE_OFFSET_BITS 64
+#include <unistd.h>
 #include <string.h>
 #include <errno.h>
 #include <sys/time.h>
-#ifndef __APPLE__
+#if !defined(__APPLE__) && !defined(__FreeBSD__)
 #include <sys/prctl.h>
 #endif
 #include <pthread.h>