mirror of https://github.com/xzeldon/htop.git
Move macro definitions close to usage
This commit is contained in:
parent
1193c6e349
commit
0cb257586a
|
@ -15,10 +15,6 @@ in the source distribution for its full text.
|
||||||
#include "Object.h"
|
#include "Object.h"
|
||||||
#include "RichString.h"
|
#include "RichString.h"
|
||||||
|
|
||||||
#ifdef __ANDROID__
|
|
||||||
#define SYS_ioprio_get __NR_ioprio_get
|
|
||||||
#define SYS_ioprio_set __NR_ioprio_set
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define PROCESS_FLAG_IO 0x0001
|
#define PROCESS_FLAG_IO 0x0001
|
||||||
#define DEFAULT_HIGHLIGHT_SECS 5
|
#define DEFAULT_HIGHLIGHT_SECS 5
|
||||||
|
|
|
@ -184,6 +184,11 @@ static int LinuxProcess_effectiveIOPriority(const LinuxProcess* this) {
|
||||||
return this->ioPriority;
|
return this->ioPriority;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
#define SYS_ioprio_get __NR_ioprio_get
|
||||||
|
#define SYS_ioprio_set __NR_ioprio_set
|
||||||
|
#endif
|
||||||
|
|
||||||
IOPriority LinuxProcess_updateIOPriority(LinuxProcess* this) {
|
IOPriority LinuxProcess_updateIOPriority(LinuxProcess* this) {
|
||||||
IOPriority ioprio = 0;
|
IOPriority ioprio = 0;
|
||||||
// Other OSes masquerading as Linux (NetBSD?) don't have this syscall
|
// Other OSes masquerading as Linux (NetBSD?) don't have this syscall
|
||||||
|
|
Loading…
Reference in New Issue