fatrace.c should include sys/sysmacros.h

Bug #1572396 reported by Mike Frysinger
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
fatrace
Fix Released
Undecided
Unassigned

Bug Description

Linux C libs are moving away from the implicit sys/sysmacros.h include by files like sys/types.h. this header has been around forever, so apps (like fatrace) should include it directly if it wants major/minor/makedev. simple fix:

--- a/fatrace.c
+++ b/fatrace.c
@@ -33,6 +33,7 @@
 #include <signal.h>
 #include <time.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 #include <sys/fanotify.h>
 #include <sys/time.h>
 #include <sys/types.h>

Revision history for this message
Martin Pitt (pitti) wrote :

This got fixed two years ago in 0.13.

Changed in fatrace:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.