Use Qt types from QtGlobal
From: Erik Hovland <erik@hovland.org>
---
mythtv/libs/libmythdb/compat.h | 2 +-
mythtv/libs/libmythdb/msocketdevice_win.cpp | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/mythtv/libs/libmythdb/compat.h b/mythtv/libs/libmythdb/compat.h
index cef5463..3fb8f30 100644
|
a
|
b
|
inline const char *dlerror(void)
|
| 269 | 269 | |
| 270 | 270 | #include "mythconfig.h" |
| 271 | 271 | #if defined(CONFIG_DARWIN) && ! defined (_SUSECONDS_T) |
| 272 | | typedef int32_t suseconds_t; // 10.3 or earlier don't have this |
| | 272 | typedef qint32 suseconds_t; // 10.3 or earlier don't have this |
| 273 | 273 | #endif |
| 274 | 274 | |
| 275 | 275 | // Libdvdnav now uses off64_t lseek64(), which Darwin doesn't have. |
diff --git a/mythtv/libs/libmythdb/msocketdevice_win.cpp b/mythtv/libs/libmythdb/msocketdevice_win.cpp
index 1c53854..7a984d9 100644
|
a
|
b
|
|
| 46 | 46 | #include "qdatetime.h" |
| 47 | 47 | |
| 48 | 48 | #include <qcoreapplication.h> |
| | 49 | #include <QtGlobal> |
| 49 | 50 | |
| 50 | 51 | #include <string.h> |
| 51 | 52 | |
| … |
… |
struct qt_sockaddr_storage {
|
| 80 | 81 | // Only the new version is the correct one, so always |
| 81 | 82 | // use this structure. |
| 82 | 83 | struct qt_in6_addr { |
| 83 | | u_char qt_s6_addr[16]; |
| | 84 | uchar qt_s6_addr[16]; |
| 84 | 85 | }; |
| 85 | 86 | typedef struct { |
| 86 | 87 | short sin6_family; /* AF_INET6 */ |
| 87 | | u_short sin6_port; /* Transport level port number */ |
| 88 | | u_long sin6_flowinfo; /* IPv6 flow information */ |
| | 88 | ushort sin6_port; /* Transport level port number */ |
| | 89 | ulong sin6_flowinfo; /* IPv6 flow information */ |
| 89 | 90 | struct qt_in6_addr sin6_addr; /* IPv6 address */ |
| 90 | | u_long sin6_scope_id; /* set of interfaces for a scope */ |
| | 91 | ulong sin6_scope_id; /* set of interfaces for a scope */ |
| 91 | 92 | } qt_sockaddr_in6; |
| 92 | 93 | #endif |
| 93 | 94 | |
| … |
… |
qint64 MSocketDevice::bytesAvailable() const
|
| 639 | 640 | { |
| 640 | 641 | if ( !isValid() ) |
| 641 | 642 | return -1; |
| 642 | | u_long nbytes = 0; |
| | 643 | ulong nbytes = 0; |
| 643 | 644 | if ( ::ioctlsocket(fd, FIONREAD, &nbytes) < 0 ) |
| 644 | 645 | return -1; |
| 645 | 646 | |