diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2021-02-13 13:06:09 -0600 |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2021-02-13 13:06:09 -0600 |
commit | ae7eac09890fa43f26887938b0463a2cf203cf38 (patch) | |
tree | c20f96cac1558d39e17af2e95f9d34b17e3c171f /libpurple/win32 | |
parent | 8ec786f4384072c13455439d3071e96a08d428be (diff) | |
download | pidgin-ae7eac09890fa43f26887938b0463a2cf203cf38.tar.gz |
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/
Diffstat (limited to 'libpurple/win32')
-rw-r--r-- | libpurple/win32/libc_interface.h | 4 | ||||
-rw-r--r-- | libpurple/win32/libc_internal.h | 41 |
2 files changed, 0 insertions, 45 deletions
diff --git a/libpurple/win32/libc_interface.h b/libpurple/win32/libc_interface.h index e7f2d542ed..917be2510f 100644 --- a/libpurple/win32/libc_interface.h +++ b/libpurple/win32/libc_interface.h @@ -60,10 +60,6 @@ wpurple_gethostbyname( name ) #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) diff --git a/libpurple/win32/libc_internal.h b/libpurple/win32/libc_internal.h index 18e6fb5c18..2c4f81f9ae 100644 --- a/libpurple/win32/libc_internal.h +++ b/libpurple/win32/libc_internal.h @@ -38,47 +38,6 @@ int wpurple_fcntl(int socket, int command, ...); #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); |