X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fplatform%2Fposix%2Fos-types.h;h=af076b2242001c40f895449ce058c6fbd00ef395;hb=d9de2aae6b2f47b8e1faacc69adba7406b9d85f0;hp=b8783b15e76d37f6aba75a9b3c144ba9624c4038;hpb=f99b4d1a21d99436a3e49733e7b83276a6362cbf;p=deb_libcec.git diff --git a/src/lib/platform/posix/os-types.h b/src/lib/platform/posix/os-types.h index b8783b1..af076b2 100644 --- 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. * - * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved. + * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited. All rights reserved. * libCEC(R) is an original work, containing original code. * * libCEC(R) is a trademark of Pulse-Eight Limited. @@ -32,6 +32,7 @@ */ #define _FILE_OFFSET_BITS 64 +#include #include #include #include @@ -43,6 +44,10 @@ #include #include +extern "C" { +#include +} + #define LIBTYPE #define DECLSPEC @@ -51,3 +56,6 @@ 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) +