Compilation fixes for OS X Yosemite

This commit is contained in:
Thomas Hooge 2018-04-06 08:48:28 +02:00
parent 0026ee9bd4
commit 4b881daa5a
2 changed files with 5 additions and 2 deletions

View File

@ -108,9 +108,8 @@ OSType HelperMacX::getProcessSignature(pid_t pid){
OSErr err; OSErr err;
ProcessSerialNumber processSerialNumber; ProcessSerialNumber processSerialNumber;
ProcessInfoRec processInfoRec; ProcessInfoRec processInfoRec;
memset(&processInfoRec, 0, sizeof(processInfoRec));
processInfoRec.processInfoLength = sizeof(processInfoRec); processInfoRec.processInfoLength = sizeof(processInfoRec);
processInfoRec.processAppSpec = NULL;
processInfoRec.processName = NULL;
err = GetProcessForPID(pid, &processSerialNumber); err = GetProcessForPID(pid, &processSerialNumber);
if (noErr != err) { if (noErr != err) {
qWarning("HelperMacX::getProcessSignature: GetProcessForPID error for pid %d: %d", pid, err); qWarning("HelperMacX::getProcessSignature: GetProcessForPID error for pid %d: %d", pid, err);

View File

@ -20,6 +20,10 @@
#ifndef RANDOM_H_ #ifndef RANDOM_H_
#define RANDOM_H_ #define RANDOM_H_
#ifndef _WIN32
#include <unistd.h> // for getpid()
#endif
#ifndef quint8 #ifndef quint8
typedef unsigned char quint8; typedef unsigned char quint8;
#endif #endif