[PATCH] Fix build on Fedora 13.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ben Greear <greearb@xxxxxxxxxxxxxxx>

Need sys/stat.h for S_ISDIR and S_ISREG symbols.

Signed-off-by: Ben Greear <greearb@xxxxxxxxxxxxxxx>
---
:100644 100644 99618c9... e057c5c... M	utils/exportfs/exportfs.c
:100644 100644 2aa3d4f... a8ce028... M	utils/mount/mount.c
 utils/exportfs/exportfs.c |    4 ++++
 utils/mount/mount.c       |    3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c
index 99618c9..e057c5c 100644
--- a/utils/exportfs/exportfs.c
+++ b/utils/exportfs/exportfs.c
@@ -12,6 +12,10 @@
 #include <config.h>
 #endif
 
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
 #include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/utils/mount/mount.c b/utils/mount/mount.c
index 2aa3d4f..a8ce028 100644
--- a/utils/mount/mount.c
+++ b/utils/mount/mount.c
@@ -20,6 +20,9 @@
 
 #include "config.h"
 #include <unistd.h>
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
 #include <sys/types.h>
 #include <stdio.h>
 #include <string.h>
-- 
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux