mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
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 "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 DEFAULT_HIGHLIGHT_SECS 5
|
||||
|
@ -184,6 +184,11 @@ static int LinuxProcess_effectiveIOPriority(const LinuxProcess* this) {
|
||||
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 ioprio = 0;
|
||||
// Other OSes masquerading as Linux (NetBSD?) don't have this syscall
|
||||
|
Loading…
Reference in New Issue
Block a user