repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into release
[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 2b6c50f8262499761aef11668829312d9dcc96ec..af076b2242001c40f895449ce058c6fbd00ef395 100644
(file)
--- a/
src/lib/platform/posix/os-types.h
+++ b/
src/lib/platform/posix/os-types.h
@@
-2,7
+2,7
@@
/*
* This file is part of the libCEC(R) library.
*
/*
* This file is part of the libCEC(R) library.
*
- * libCEC(R) is Copyright (C) 2011-201
2
Pulse-Eight Limited. All rights reserved.
+ * libCEC(R) is Copyright (C) 2011-201
3
Pulse-Eight Limited. All rights reserved.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
@@
-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,10
+44,18
@@
#include <semaphore.h>
#include <stdint.h>
#include <semaphore.h>
#include <stdint.h>
+extern "C" {
+#include <sys/types.h>
+}
+
#define LIBTYPE
#define DECLSPEC
typedef int socket_t;
#define LIBTYPE
#define DECLSPEC
typedef int socket_t;
-#define INVALID_SOCKET (-1)
-#define SOCKET_ERROR (-1)
+typedef socket_t tcp_socket_t;
+#define INVALID_SOCKET_VALUE (-1)
+typedef socket_t serial_socket_t;
+#define INVALID_SERIAL_SOCKET_VALUE (-1)
+typedef socket_t chardev_socket_t;
+#define INVALID_CHARDEV_SOCKET_VALUE (-1)