]> granicus.if.org Git - psmisc/commitdiff
fuser: include sysmacros.h for makedev
authorMike Frysinger <vapier@gentoo.org>
Mon, 7 Mar 2016 19:58:33 +0000 (14:58 -0500)
committerCraig Small <csmall@enc.com.au>
Tue, 8 Mar 2016 09:28:31 +0000 (20:28 +1100)
BSD/Linux define makedev in the sysmacros.h header.  Include it directly
instead of relying on types.h pulling it in for us.

Signed-off-by: Craig Small <csmall@enc.com.au>
src/fuser.c

index da94d2249fb4489a6975654333441da65ecb051b..380046f0efab1d9cd8684af949df58b1ef5dcea0 100644 (file)
@@ -36,6 +36,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/socket.h>
+#include <sys/sysmacros.h>
 #include <sys/wait.h>
 #include <arpa/inet.h>
 #include <netinet/in.h>