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