Compilation fixes for OS X Yosemite
This commit is contained in:
parent
0026ee9bd4
commit
4b881daa5a
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue