repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
platform: added tcp server sockets for posix
[deb_libcec.git]
/
src
/
lib
/
platform
/
posix
/
os-types.h
diff --git
a/src/lib/platform/posix/os-types.h
b/src/lib/platform/posix/os-types.h
index 631e96508e963a9cfb1b88184e463fc80527d837..a365635490f66d4a7b46e86211404abe4ac60de3 100644
(file)
--- a/
src/lib/platform/posix/os-types.h
+++ b/
src/lib/platform/posix/os-types.h
@@
-32,10
+32,11
@@
*/
#define _FILE_OFFSET_BITS 64
*/
#define _FILE_OFFSET_BITS 64
+#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/time.h>
#include <string.h>
#include <errno.h>
#include <sys/time.h>
-#if
ndef __APPLE__
+#if
!defined(__APPLE__) && !defined(__FreeBSD__)
#include <sys/prctl.h>
#endif
#include <pthread.h>
#include <sys/prctl.h>
#endif
#include <pthread.h>
@@
-43,6
+44,10
@@
#include <semaphore.h>
#include <stdint.h>
#include <semaphore.h>
#include <stdint.h>
+extern "C" {
+#include <sys/types.h>
+}
+
#define LIBTYPE
#define DECLSPEC
#define LIBTYPE
#define DECLSPEC