2008-11-04 01:04 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbthread.h
! fixed typo
* harbour/source/vm/Makefile
* excluded mainpm.c from OS2 builds
* harbour/source/rtl/hbinet.c
* changed the #include order for OS2 OpenWatcom builds and added some
cleanups - please test other builds.
This commit is contained in:
@@ -8,6 +8,17 @@
|
||||
2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org)
|
||||
*/
|
||||
|
||||
2008-11-04 01:04 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/include/hbthread.h
|
||||
! fixed typo
|
||||
|
||||
* harbour/source/vm/Makefile
|
||||
* excluded mainpm.c from OS2 builds
|
||||
|
||||
* harbour/source/rtl/hbinet.c
|
||||
* changed the #include order for OS2 OpenWatcom builds and added some
|
||||
cleanups - please test other builds.
|
||||
|
||||
2008-11-04 00:15 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
|
||||
* common.mak
|
||||
* source/codepage/Makefile
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
#elif defined( HB_OS_WIN_32 )
|
||||
# include <windows.h>
|
||||
# include <process.h>
|
||||
#elif defined( HB_OS_WIN_OS2 )
|
||||
#elif defined( HB_OS_OS2 )
|
||||
# if defined( __WATCOMC__ )
|
||||
# include <process.h>
|
||||
# endif
|
||||
|
||||
@@ -95,10 +95,12 @@
|
||||
#endif
|
||||
|
||||
#define HB_SOCKET_T int
|
||||
#include <unistd.h>
|
||||
|
||||
#include <errno.h>
|
||||
#if defined( HB_OS_OS2 )
|
||||
#if defined( __WATCOMC__ )
|
||||
#include <types.h>
|
||||
#include <nerrno.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
@@ -111,14 +113,16 @@
|
||||
#include <netdb.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(__WATCOMC__)
|
||||
#define h_errno errno
|
||||
#else
|
||||
extern int h_errno;
|
||||
#if !defined(h_errno)
|
||||
#if defined(__WATCOMC__)
|
||||
#define h_errno errno
|
||||
#else
|
||||
extern int h_errno;
|
||||
#endif
|
||||
#endif
|
||||
#define HB_INET_CLOSE( x ) close( x )
|
||||
#include <errno.h>
|
||||
#endif
|
||||
|
||||
typedef struct _HB_SOCKET_STRUCT
|
||||
@@ -429,14 +433,15 @@ static void hb_socketSetNonBlocking( HB_SOCKET_STRUCT *Socket )
|
||||
#if defined( HB_OS_WIN_32 )
|
||||
ULONG mode = 1;
|
||||
ioctlsocket( Socket->com, FIONBIO, &mode );
|
||||
|
||||
#else
|
||||
#elif defined( O_NONBLOCK )
|
||||
int flags = fcntl( Socket->com, F_GETFL, 0 );
|
||||
if( flags != -1 )
|
||||
{
|
||||
flags |= O_NONBLOCK;
|
||||
fcntl( Socket->com, F_SETFL, (LONG) flags );
|
||||
}
|
||||
#else
|
||||
HB_SYMBOL_UNUSED( Socket );
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -448,13 +453,15 @@ static void hb_socketSetBlocking( HB_SOCKET_STRUCT *Socket )
|
||||
#if defined( HB_OS_WIN_32 )
|
||||
ULONG mode = 0;
|
||||
ioctlsocket( Socket->com, FIONBIO, &mode );
|
||||
#else
|
||||
#elif defined( O_NONBLOCK )
|
||||
int flags = fcntl( Socket->com, F_GETFL, 0 );
|
||||
if( flags != -1 )
|
||||
{
|
||||
flags &= ~O_NONBLOCK;
|
||||
fcntl( Socket->com, F_SETFL, ( long ) flags );
|
||||
}
|
||||
#else
|
||||
HB_SYMBOL_UNUSED( Socket );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ ifeq ($(HB_ARCHITECTURE),w32)
|
||||
endif
|
||||
else
|
||||
ifeq ($(HB_ARCHITECTURE),os2)
|
||||
C_MAIN = mainstd.c mainpm.c
|
||||
C_MAIN = mainstd.c
|
||||
else
|
||||
C_MAIN = main.c
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user