summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-02-04 16:32:41 +0100
committerHisham Muhammad <hisham@gobolinux.org>2018-02-26 20:13:09 -0300
commit01695770190b82479054180afab1947c2cdbe7ab (patch)
tree3f36bf4ff0aea160aac5df2abe42cdb8bf4dce61
parent0e38be9ee7f1a30ddd584af40c6e93c7829ed19e (diff)
Fix inttypes.h header
-rw-r--r--Process.c2
-rw-r--r--Process.h1
-rw-r--r--darwin/Platform.h4
3 files changed, 6 insertions, 1 deletions
diff --git a/Process.c b/Process.c
index ee9c9b24..0a184b70 100644
--- a/Process.c
+++ b/Process.c
@@ -34,7 +34,6 @@ in the source distribution for its full text.
(defined(HAVE_SYS_SYSMACROS_H) && HAVE_SYS_SYSMACROS_H)
#include <sys/sysmacros.h>
#endif
-#include <inttypes.h>
#ifdef __ANDROID__
#define SYS_ioprio_get __NR_ioprio_get
@@ -52,6 +51,7 @@ in the source distribution for its full text.
#include "Object.h"
#include <sys/types.h>
+#include <inttypes.h>
#define PROCESS_FLAG_IO 0x0001
diff --git a/Process.h b/Process.h
index f70a4480..3ff67d4c 100644
--- a/Process.h
+++ b/Process.h
@@ -29,6 +29,7 @@ in the source distribution for its full text.
#include "Object.h"
#include <sys/types.h>
+#include <inttypes.h>
#define PROCESS_FLAG_IO 0x0001
diff --git a/darwin/Platform.h b/darwin/Platform.h
index 1231217b..d5446a88 100644
--- a/darwin/Platform.h
+++ b/darwin/Platform.h
@@ -16,6 +16,10 @@ in the source distribution for its full text.
#include "BatteryMeter.h"
#include "DarwinProcess.h"
+typedef enum DarwinProcessFields {
+ LAST_PROCESSFIELD = 100,
+} DarwinProcessField;
+
#ifndef CLAMP
#define CLAMP(x,low,high) (((x)>(high))?(high):(((x)<(low))?(low):(x)))
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy