summaryrefslogtreecommitdiff
path: root/win32/include/sys/socket.h
diff options
context:
space:
mode:
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