X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=src%2Flib%2Fplatform%2Fposix%2Fos-types.h;h=b89b9cc2a57617f15ae69ddc5d9d65274cdd737c;hb=86393878734d316e04319c739dd45fc90c50bef8;hp=521c89a0aa710d75b4668c5871b0d363a87e00a3;hpb=ba65909d0a9c43a1bac71c6182c53f202285cec5;p=deb_libcec.git
diff --git a/src/lib/platform/posix/os-types.h b/src/lib/platform/posix/os-types.h
index 521c89a..b89b9cc 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-2012 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
@@ -34,6 +48,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)