These are exposed earlier than linux-3.11. Let's just include linux/oom.h.
#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>
#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
#include <errno.h>
#include <inttypes.h>
+#include <linux/oom.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>