summaryrefslogtreecommitdiff
blob: 08f023b442e5683cc8bdb4661f1429435cc94dcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 25c50af220c2de4542b440b7470a644caf2a3b65 Mon Sep 17 00:00:00 2001
From: Lars Wendler <polynomial-c@gentoo.org>
Date: Mon, 5 Feb 2018 16:02:19 +0100
Subject: [PATCH] Add <sys/sysmacros.h> to two files.

Future glibc releases will no longer include sysmacros implicitly.
---
 Process.c                | 1 +
 linux/LinuxProcessList.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/Process.c b/Process.c
index 1836080..5122afb 100644
--- a/Process.c
+++ b/Process.c
@@ -19,6 +19,7 @@ in the source distribution for its full text.
 #include <sys/param.h>
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <sys/sysmacros.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <signal.h>
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index 6f2631a..7522fb1 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -25,6 +25,7 @@ in the source distribution for its full text.
 #include <time.h>
 #include <assert.h>
 #include <sys/types.h>
+#include <sys/sysmacros.h>
 #include <fcntl.h>
 
 #ifdef HAVE_DELAYACCT
-- 
2.16.1