cec: set the device type in the firmware too for v2 firmwares. bugzid: 543
[deb_libcec.git] / src / lib / platform / posix / os-types.h
index 2b6c50f8262499761aef11668829312d9dcc96ec..b8783b15e76d37f6aba75a9b3c144ba9624c4038 100644 (file)
@@ -35,7 +35,7 @@
 #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>
@@ -47,6 +47,7 @@
 #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)