[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
This commit is contained in:
Timo Kreuzer 2010-03-28 21:01:25 +00:00
parent 0e76e9857c
commit 3479ab1925
3 changed files with 6 additions and 21 deletions

View file

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

View file

@ -4,17 +4,6 @@
<include base="ftp">.</include>
<define name="lint" />
<!-- FIXME: workarounds until we have a proper oldnames library -->
<define name="chdir">_chdir</define>
<define name="getcwd">_getcwd</define>
<define name="mktemp">_mktemp</define>
<define name="unlink">_unlink</define>
<define name="close">_close</define>
<define name="fileno">_fileno</define>
<define name="read">_read</define>
<define name="write">_write</define>
<define name="lseek">_lseek</define>
<library>ws2_32</library>
<library>iphlpapi</library>
<file>cmds.c</file>

View file

@ -4,13 +4,6 @@
<include base="dhcp">.</include>
<include base="dhcp">include</include>
<!-- FIXME: workarounds until we have a proper oldnames library -->
<define name="tzset">_tzset</define>
<define name="close">_close</define>
<define name="read">_read</define>
<define name="write">_write</define>
<define name="NO_OLDNAMES">1</define>
<library>ntdll</library>
<library>ws2_32</library>
<library>iphlpapi</library>