diff -Naur atop-2.3.0.orig/photosyst.c atop-2.3.0/photosyst.c
--- atop-2.3.0.orig/photosyst.c	2018-09-13 22:20:39.955394816 -0700
+++ atop-2.3.0/photosyst.c	2018-09-13 22:21:11.137004992 -0700
@@ -151,6 +151,7 @@
 
 static const char rcsid[] = "$Id: photosyst.c,v 1.38 2010/11/19 07:40:40 gerlof Exp $";
 
+#include <sys/sysmacros.h>
 #include <sys/types.h>
 #include <stdio.h>
 #include <string.h>
