missing: drop old OOM related definitions
These are exposed earlier than linux-3.11. Let's just include linux/oom.h.
This commit is contained in:
parent
8f8495702e
commit
49f6103375
|
@ -8,7 +8,6 @@
|
|||
#include <inttypes.h>
|
||||
#include <linux/audit.h>
|
||||
#include <linux/falloc.h>
|
||||
#include <linux/oom.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/socket.h>
|
||||
|
@ -87,14 +86,6 @@ struct sockaddr_vm {
|
|||
#define IP_FREEBIND 15
|
||||
#endif
|
||||
|
||||
#ifndef OOM_SCORE_ADJ_MIN
|
||||
#define OOM_SCORE_ADJ_MIN (-1000)
|
||||
#endif
|
||||
|
||||
#ifndef OOM_SCORE_ADJ_MAX
|
||||
#define OOM_SCORE_ADJ_MAX 1000
|
||||
#endif
|
||||
|
||||
#ifndef AUDIT_SERVICE_START
|
||||
#define AUDIT_SERVICE_START 1130 /* Service (daemon) start */
|
||||
#endif
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <linux/oom.h>
|
||||
#include <locale.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
Loading…
Reference in New Issue