summaryrefslogtreecommitdiff
path: root/win32/include
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>1997-11-27 17:46:30 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>1997-11-27 17:46:30 +0000
commita835ef8a5ef2441baebe4910667c49a7be441c88 (patch)
tree16ffce3090d1f147fe5cc67a52c0eae38c037e1b /win32/include
parentc6af95f61decbba4d08b75e0ff2fadd33009bd72 (diff)
downloadperl-a835ef8a5ef2441baebe4910667c49a7be441c88.tar.gz
Add files and tweak others to get 'native' Mingw32 gcc port as
far as building miniperl and perl.dll (but not import lib yet) Seems to lack popen()/pclose() and fcloseall() and fflushall(). Also only CRTDLL not MCRTDLL so threading is probably not possible yet. Had to mess with win32iop.h's placement as we need __attribute__ to get STDCALL, and #define of printf messes up proto.h p4raw-id: //depot/ansiperl@325
Diffstat (limited to 'win32/include')
-rw-r--r--win32/include/sys/socket.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/win32/include/sys/socket.h b/win32/include/sys/socket.h
index c6d0123143..40a5485343 100644
--- a/win32/include/sys/socket.h
+++ b/win32/include/sys/socket.h
@@ -11,6 +11,13 @@ extern "C" {
#endif
#ifndef _WINDOWS_
+#ifdef __GNUC__
+#define WIN32_LEAN_AND_MEAN
+#ifdef __GNUC__
+#define Win32_Winsock
+#endif
+#include <windows.h>
+#else
#define _WINDOWS_
#define FAR
@@ -38,8 +45,11 @@ typedef struct _OVERLAPPED {
HANDLE hEvent;
} OVERLAPPED, *LPOVERLAPPED;
+#endif
#endif //_WINDOWS_
+#ifndef __GNUC__
#include <winsock.h>
+#endif
#define ENOTSOCK WSAENOTSOCK
#undef HOST_NOT_FOUND