Commit 3d5ff7dc authored by Felix Paul Kühne's avatar Felix Paul Kühne

64bit compilation fixes

parent 5858f0fc
...@@ -138,8 +138,8 @@ static int probe_sms(int kernFunc, char *servMatch, int dataType, void *data) ...@@ -138,8 +138,8 @@ static int probe_sms(int kernFunc, char *servMatch, int dataType, void *data)
io_object_t aDevice; io_object_t aDevice;
io_connect_t dataPort; io_connect_t dataPort;
IOItemCount structureInputSize; size_t structureInputSize;
IOByteCount structureOutputSize; size_t structureOutputSize;
union motion_data inputStructure; union motion_data inputStructure;
union motion_data *outputStructure; union motion_data *outputStructure;
...@@ -189,8 +189,13 @@ static int probe_sms(int kernFunc, char *servMatch, int dataType, void *data) ...@@ -189,8 +189,13 @@ static int probe_sms(int kernFunc, char *servMatch, int dataType, void *data)
memset(&inputStructure, 0, sizeof(union motion_data)); memset(&inputStructure, 0, sizeof(union motion_data));
memset(outputStructure, 0, sizeof(union motion_data)); memset(outputStructure, 0, sizeof(union motion_data));
#ifdef __LP64__
result = IOConnectCallStructMethod(dataPort, kernFunc, &inputStructure,
structureInputSize, outputStructure, &structureOutputSize );
#else
result = IOConnectMethodStructureIStructureO(dataPort, kernFunc, structureInputSize, result = IOConnectMethodStructureIStructureO(dataPort, kernFunc, structureInputSize,
&structureOutputSize, &inputStructure, outputStructure); &structureOutputSize, &inputStructure, outputStructure);
#endif
IOServiceClose(dataPort); IOServiceClose(dataPort);
......
...@@ -37,6 +37,9 @@ ...@@ -37,6 +37,9 @@
/* BeginFullScreen, EndFullScreen */ /* BeginFullScreen, EndFullScreen */
#include <QuickTime/QuickTime.h> #include <QuickTime/QuickTime.h>
/* prevent system sleep */
#import <CoreServices/CoreServices.h>
#include <vlc_keys.h> #include <vlc_keys.h>
#include "intf.h" #include "intf.h"
...@@ -447,6 +450,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -447,6 +450,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
if( !VLCIntf || !VLCIntf->p_sys ) if( !VLCIntf || !VLCIntf->p_sys )
return; return;
UInt8 UsrActivity;
if( VLCIntf->p_sys->i_play_status == PLAYING_S ) if( VLCIntf->p_sys->i_play_status == PLAYING_S )
UpdateSystemActivity( UsrActivity ); UpdateSystemActivity( UsrActivity );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment