[mtd-utils PATCH] mkfs.ubifs: <sys/xattr.h>, not <attr/xattr.h>

Brian Norris computersforpeace at gmail.com
Sat Jan 23 13:31:50 PST 2016


To be consistent with mkfs.jffs2, and to get this to build on my
machine, it looks like we should use <sys/xattr.h>, not <attr/xattr.h>.

Fixes this error, seen on an Ubuntu 14.04 build system:

  ubifs-utils/mkfs.ubifs/mkfs.ubifs.c:30:24: fatal error: attr/xattr.h: No such file or directory
   #include <attr/xattr.h>
                          ^

Signed-off-by: Brian Norris <computersforpeace at gmail.com>
Cc: Sascha Hauer <s.hauer at pengutronix.de>
Cc: Marc Kleine-Budde <mkl at pengutronix.de>
Cc: Richard Weinberger <richard at nod.at>
---
 ubifs-utils/mkfs.ubifs/mkfs.ubifs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
index 27f8d0a160c3..a60052d12c46 100644
--- a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
+++ b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
@@ -27,7 +27,7 @@
 #include "common.h"
 #include <sys/types.h>
 #ifndef WITHOUT_XATTR
-#include <attr/xattr.h>
+#include <sys/xattr.h>
 #endif
 
 /* Size (prime number) of hash table for link counting */
-- 
2.7.0.rc3.207.g0ac5344




More information about the linux-mtd mailing list