1diff --git a/affinity.c b/affinity.c
2index 9fbd6af..5343df0 100644
3--- a/affinity.c
4+++ b/affinity.c
5@@ -39,6 +39,7 @@
6 #include <dirent.h>
7 #include <linux/rtnetlink.h>
8 #include <linux/netlink.h>
9 #include <sys/types.h>
10+#include <sys/sysmacros.h>
11 #include <ctype.h>
12 #include <assert.h>
13