]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
procutils: include missing header
authorDavidlohr Bueso <dave@gnu.org>
Wed, 4 May 2011 17:40:14 +0000 (14:40 -0300)
committerKarel Zak <kzak@redhat.com>
Thu, 5 May 2011 12:01:39 +0000 (14:01 +0200)
To be able to use DIR we need to include the dirent.h header. This fixes issues such as:

../include/procutils.h:5: error: syntax error before "DIR"
../include/procutils.h:5: warning: no semicolon at end of struct or union

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
include/procutils.h

index 48aecdd23b548f8b1590660877cc31ea1bb4d70c..ca7087a2b780ef840a05c922afe56fafcef0e2f6 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef UTIL_LINUX_PROCUTILS
 #define UTIL_LINUX_PROCUTILS
 
+#include <dirent.h>
+
 struct proc_tasks {
        DIR *dir;
 };