repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: use CTryLockObject when trying to replace handlers in CCECBusDevice
[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..631e96508e963a9cfb1b88184e463fc80527d837 100644
(file)
--- a/
src/lib/platform/posix/os-types.h
+++ b/
src/lib/platform/posix/os-types.h
@@
-47,6
+47,7
@@
#define DECLSPEC
typedef int socket_t;
#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)