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:
Przemyslaw Czerpak
2009-08-31 14:21:45 +00:00
parent 77589e310c
commit bea08ca6d4
2 changed files with 11 additions and 3 deletions

View File

@@ -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

View File

@@ -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.