fatrace.c should include sys/sysmacros.h
Bug #1572396 reported by
Mike Frysinger
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/
--- 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>
To post a comment you must log in.
This got fixed two years ago in 0.13.