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