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:
Yu Watanabe 2018-12-06 06:29:22 +01:00
parent 8f8495702e
commit 49f6103375
2 changed files with 1 additions and 9 deletions

View File

@ -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

View File

@ -2,6 +2,7 @@
#include <errno.h>
#include <inttypes.h>
#include <linux/oom.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>