diff options
| author | dapetcu21 <dapetcu21@gmail.com> | 2010-07-19 13:00:40 +0000 |
|---|---|---|
| committer | dapetcu21 <dapetcu21@gmail.com> | 2010-07-19 13:00:40 +0000 |
| commit | 8c57ef548e588ab37a5f2ecf103fd045d8623269 (patch) | |
| tree | 0d49272e0c899cc0ca037b2aae63212f7b6111f8 /Source/Core/InputCommon | |
| parent | b08230512b6b15b7c4001cd15d504226bbcd13e0 (diff) | |
Fixed windows build...
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5918 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/InputCommon')
| -rw-r--r-- | Source/Core/InputCommon/Src/UDPWiimote.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/Src/UDPWiimote.cpp b/Source/Core/InputCommon/Src/UDPWiimote.cpp index 467ea44745..311e86fb63 100644 --- a/Source/Core/InputCommon/Src/UDPWiimote.cpp +++ b/Source/Core/InputCommon/Src/UDPWiimote.cpp @@ -41,6 +41,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <time.h> #include <list> struct UDPWiimote::_d @@ -307,7 +308,7 @@ void UDPWiimote::initBroadcastIPv4() } int broad=1; - if (setsockopt(d->bipv4_fd,SOL_SOCKET,SO_BROADCAST, &broad, sizeof broad) == -1) + if (setsockopt(d->bipv4_fd,SOL_SOCKET,SO_BROADCAST, (const dataz)(&broad), sizeof broad) == -1) { WARN_LOG(WIIMOTE,"setsockopt(SO_BROADCAST) failed"); return; |
