2009-08-31 16:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/net.c
! fixed DJGPP compilation when MAXGETHOSTNAME is not defined in
header files
This commit is contained in:
@@ -17,6 +17,11 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2009-08-31 16:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/source/rtl/net.c
|
||||
! fixed DJGPP compilation when MAXGETHOSTNAME is not defined in
|
||||
header files
|
||||
|
||||
2009-08-31 16:04 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/source/rtl/Makefile
|
||||
! updated to work with new component detection syntax
|
||||
|
||||
@@ -80,8 +80,6 @@
|
||||
#define gethostname __gethostname
|
||||
#endif
|
||||
|
||||
#define MAXGETHOSTNAME 256 /* should be enough for a host name */
|
||||
|
||||
#elif defined( HB_OS_DOS )
|
||||
|
||||
#if defined( __DJGPP__ ) || defined( __RSX32__ ) || defined( __GNUC__ )
|
||||
@@ -96,10 +94,15 @@
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#define MAXGETHOSTNAME 256 /* should be enough for a host name */
|
||||
|
||||
#endif
|
||||
|
||||
#if !defined( MAXGETHOSTNAME ) && ( defined( HB_OS_UNIX ) || \
|
||||
( ( defined( HB_OS_OS2 ) || defined( HB_OS_DOS ) ) && \
|
||||
defined( __GNUC__ ) ) )
|
||||
#define MAXGETHOSTNAME 256 /* should be enough for a host name */
|
||||
#endif
|
||||
|
||||
/* NOTE: Clipper will only return a maximum of 15 bytes from this function.
|
||||
And it will be padded with spaces. Harbour does the same on the
|
||||
DOS platform.
|
||||
|
||||
Reference in New Issue
Block a user