summaryrefslogtreecommitdiff
path: root/win32/include/sys/socket.h
diff options
context:
space:
mode:
authorTim Champagne <tchamp@users.sourceforge.net>2003-05-16 15:07:35 +0000
committerTim Champagne <tchamp@users.sourceforge.net>2003-05-16 15:07:35 +0000
commit19b954f40ce05dbb781810206de6ca38fa47eb76 (patch)
treeb6be89f7b8a9acc651a5f4edcb07ce7631bdcc99 /win32/include/sys/socket.h
parent02d7b2575a8672138dd4f088bd829f5ae7383310 (diff)
downloadxine-lib-19b954f40ce05dbb781810206de6ca38fa47eb76.tar.gz
xine-lib-19b954f40ce05dbb781810206de6ca38fa47eb76.tar.bz2
Fix win32 build and start adding additional plugin support
CVS patchset: 4867 CVS date: 2003/05/16 15:07:35
Diffstat (limited to 'win32/include/sys/socket.h')
-rwxr-xr-xwin32/include/sys/socket.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/win32/include/sys/socket.h b/win32/include/sys/socket.h
new file mode 100755
index 000000000..65f04ef64
--- /dev/null
+++ b/win32/include/sys/socket.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2000-2001 the xine project
+ *
+ * This file is part of xine, a unix video player.
+ *
+ * xine 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 of the License, or
+ * (at your option) any later version.
+ *
+ * xine 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
+ *
+ * WIN32 PORT,
+ */
+
+#include <fcntl.h> /* Not sure that this is needed */
+
+#include <io.h> /* open, close, ... */
+#include <winsock.h>
+
+#define SIGPIPE 3
+#define SIGALRM 13
+
+/* Some real good hacks! */
+#undef errno
+#define errno WSAGetLastError
+
+#define EINPROGRESS WSAEINPROGRESS