summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2011-06-22 11:16:59 +0200
committerEike Ziller <eike.ziller@nokia.com>2011-06-22 11:23:45 +0200
commit5118e75bc76f6c90a7e788d68763082c76db8dcb (patch)
treea8c8840e04e169eeb6f4cca3c4ca18978bf209b6 /src/shared
parent5f6a91e0095989b6f978cd2b347890110a101d33 (diff)
downloadqt-creator-5118e75bc76f6c90a7e788d68763082c76db8dcb.tar.gz
Fix build on Mac 10.5
USBSpec.h misses some constants/defines. Change-Id: I1fde2e15a4d5d661158c93424b5b1299b0a2baaf Reviewed-on: http://codereview.qt.nokia.com/589 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/symbianutils/symbiandevicemanager.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shared/symbianutils/symbiandevicemanager.cpp b/src/shared/symbianutils/symbiandevicemanager.cpp
index 77bd1c69b5..79f84cbf14 100644
--- a/src/shared/symbianutils/symbiandevicemanager.cpp
+++ b/src/shared/symbianutils/symbiandevicemanager.cpp
@@ -53,6 +53,15 @@
#include <IOKit/IOKitLib.h>
#include <IOKit/serial/IOSerialKeys.h>
#include <IOKit/usb/USBSpec.h>
+
+// 10.5 doesn't have kUSBProductString or kUSBVendorString
+#ifndef kUSBProductString
+#define kUSBProductString "USB Product Name"
+#endif
+#ifndef kUSBVendorString
+#define kUSBVendorString "USB Vendor Name"
+#endif
+
#if defined(MAC_OS_X_VERSION_10_3) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_3)
#include <IOKit/serial/ioss.h>
#endif