pidgin/pidgin

Remove more unused Windows wrapper parts

2021-02-13, Elliott Sales de Andrade
83ce555aeb47
Parents 75794647db18
Children 507a61f2194a
Remove more unused Windows wrapper parts

Remove unused Windows gettimeofday wrapper defines.
Remove struct definitions for removed `ioctl` wrapper.

Testing Done:
Compile only.

Reviewed at https://reviews.imfreedom.org/r/506/
--- a/libpurple/win32/libc_interface.h Sat Feb 13 03:58:05 2021 -0600
+++ b/libpurple/win32/libc_interface.h Sat Feb 13 13:06:09 2021 -0600
@@ -60,10 +60,6 @@
#define gethostname( name, size ) \
wpurple_gethostname( name, size )
-/* sys/time.h */
-#define gettimeofday( timeval, timezone ) \
-wpurple_gettimeofday( timeval, timezone )
-
/* stdio.h */
#if !defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 3 || \
!defined(IS_WIN32_CROSS_COMPILED)
--- a/libpurple/win32/libc_internal.h Sat Feb 13 03:58:05 2021 -0600
+++ b/libpurple/win32/libc_internal.h Sat Feb 13 13:06:09 2021 -0600
@@ -38,47 +38,6 @@
#define F_SETFL 4
#define O_NONBLOCK 04000
-/* net/if.h */
-struct ifreq
-{
- union
- {
- char ifrn_name[6]; /* Interface name, e.g. "en0". */
- } ifr_ifrn;
-
- union
- {
- struct sockaddr ifru_addr;
- char *ifru_data;
- } ifr_ifru;
-};
-# define ifr_name ifr_ifrn.ifrn_name /* interface name */
-# define ifr_addr ifr_ifru.ifru_addr /* address */
-# define ifr_data ifr_ifru.ifru_data /* for use by interface */
-
-struct ifconf
-{
- int ifc_len; /* Size of buffer. */
- union
- {
- char *ifcu_buf;
- struct ifreq *ifcu_req;
- } ifc_ifcu;
-};
-# define ifc_buf ifc_ifcu.ifcu_buf /* Buffer address. */
-# define ifc_req ifc_ifcu.ifcu_req /* Array of structures. */
-
-/* sys/time.h */
-#if __MINGW32_MAJOR_VERSION < 3 || (__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION < 10)
-struct timezone {
- int tz_minuteswest;
- int tz_dsttime;
-};
-#else
-# include <sys/time.h>
-#endif
-int wpurple_gettimeofday(struct timeval *p, struct timezone *z);
-
/* unistd.h */
int wpurple_gethostname(char *name, size_t size);