From 3479ab1925e92f8afc096838676341dd37f675cd Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 28 Mar 2010 21:01:25 +0000 Subject: [PATCH] [FTP/DHCP] - remove the oldnames hack, as we now have a proper oldnames lib (included in mingw_common) - protect struct timezone from redefinition svn path=/branches/ros-amd64-bringup/; revision=46526 --- reactos/base/applications/network/ftp/fake.h | 9 ++++++--- reactos/base/applications/network/ftp/ftp.rbuild | 11 ----------- reactos/base/services/dhcp/dhcp.rbuild | 7 ------- 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a/reactos/base/applications/network/ftp/fake.h b/reactos/base/applications/network/ftp/fake.h index f622c401970..a22009886bd 100644 --- a/reactos/base/applications/network/ftp/fake.h +++ b/reactos/base/applications/network/ftp/fake.h @@ -9,9 +9,12 @@ #define strcasecmp _stricmp #define strncasecmp _strnicmp +#ifndef _TIMEZONE_DEFINED /* also in sys/time.h */ +#define _TIMEZONE_DEFINED struct timezone { - int tz_minuteswest; /* minutes W of Greenwich */ - int tz_dsttime; /* type of dst correction */ + int tz_minuteswest; + int tz_dsttime; }; -int gettimeofday(struct timeval *tv, struct timezone *tz); + extern int __cdecl gettimeofday (struct timeval *p, struct timezone *z); +#endif diff --git a/reactos/base/applications/network/ftp/ftp.rbuild b/reactos/base/applications/network/ftp/ftp.rbuild index 193fa6e8ebd..d7794dc986a 100644 --- a/reactos/base/applications/network/ftp/ftp.rbuild +++ b/reactos/base/applications/network/ftp/ftp.rbuild @@ -4,17 +4,6 @@ . - - _chdir - _getcwd - _mktemp - _unlink - _close - _fileno - _read - _write - _lseek - ws2_32 iphlpapi cmds.c diff --git a/reactos/base/services/dhcp/dhcp.rbuild b/reactos/base/services/dhcp/dhcp.rbuild index 85e5147d834..93a31dcd613 100644 --- a/reactos/base/services/dhcp/dhcp.rbuild +++ b/reactos/base/services/dhcp/dhcp.rbuild @@ -4,13 +4,6 @@ . include - - _tzset - _close - _read - _write - 1 - ntdll ws2_32 iphlpapi