X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=src%2Flib%2Fplatform%2Fposix%2Fos-types.h;h=af076b2242001c40f895449ce058c6fbd00ef395;hb=5d71f08c3211791a51f6d7b0bde3d41f2e56d71f;hp=99bacb3a0ee868683384ab5e72843824516037cb;hpb=f00ff009cfc5dfefdf09ca241b9560e74575b3f5;p=deb_libcec.git
diff --git a/src/lib/platform/posix/os-types.h b/src/lib/platform/posix/os-types.h
index 99bacb3..af076b2 100644
--- a/src/lib/platform/posix/os-types.h
+++ b/src/lib/platform/posix/os-types.h
@@ -1,28 +1,42 @@
#pragma once
/*
- * Copyright (C) 2005-2011 Team XBMC
- * http://www.xbmc.org
+ * This file is part of the libCEC(R) library.
*
- * This Program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
+ * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited. All rights reserved.
+ * libCEC(R) is an original work, containing original code.
*
- * This Program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * libCEC(R) is a trademark of Pulse-Eight Limited.
*
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
+ * This program is dual-licensed; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ *
+ * Alternatively, you can license this library under a commercial license,
+ * please contact Pulse-Eight Licensing for more information.
+ *
+ * For more information contact:
+ * Pulse-Eight Licensing
+ * http://www.pulse-eight.com/
+ * http://www.pulse-eight.net/
*/
#define _FILE_OFFSET_BITS 64
+#include
#include
#include
#include
-#ifndef __APPLE__
+#if !defined(__APPLE__) && !defined(__FreeBSD__)
#include
#endif
#include
@@ -30,6 +44,18 @@
#include
#include
+extern "C" {
+#include
+}
+
#define LIBTYPE
#define DECLSPEC
+typedef int socket_t;
+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)
+