2009-06-16 15:09 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* examples/uhttpd2/socket.c
! Including winsock2.h to avoid missing macro SD_BOTH
on MSVC and POCC (maybe more) compilers.
This commit is contained in:
@@ -17,6 +17,11 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2009-06-16 15:09 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* examples/uhttpd2/socket.c
|
||||
! Including winsock2.h to avoid missing macro SD_BOTH
|
||||
on MSVC and POCC (maybe more) compilers.
|
||||
|
||||
2009-06-16 15:03 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* utils/hbmk2/hbmk2.prg
|
||||
+ Added preliminary support for autosetup for several more
|
||||
|
||||
@@ -47,17 +47,20 @@
|
||||
#include "hbvm.h"
|
||||
|
||||
#if defined( HB_OS_WIN )
|
||||
#include <windows.h>
|
||||
#define socklen_t int
|
||||
#define SHUT_RDWR SD_BOTH
|
||||
#define _WINSOCKAPI_ /* Prevents inclusion of winsock.h in windows.h */
|
||||
#define HB_SOCKET_T SOCKET
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#define socklen_t int
|
||||
#define SHUT_RDWR SD_BOTH
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#define INVALID_SOCKET (-1)
|
||||
typedef int SOCKET;
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#define INVALID_SOCKET (-1)
|
||||
typedef int SOCKET;
|
||||
#endif
|
||||
|
||||
#ifdef hb_parnidef
|
||||
|
||||
Reference in New Issue
Block a user