[nautilus/compatibility-improvements: 4/5] file: Make sure we include necessary headers



commit 41ab60dfa00c72fc787d8b09edf6679728ebb1d8
Author: Carlos Soriano <csoriano gnome org>
Date:   Fri Jun 8 17:22:23 2018 +0200

    file: Make sure we include necessary headers
    
    setpwent is used but we didn't include the necessary headers.
    
    It was building in Fedora because some other header included it,
    but that's not the case in RHEL.

 src/nautilus-file.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index 01e35d9ab..ba6ea2fb9 100644
--- a/src/nautilus-file.c
+++ b/src/nautilus-file.c
@@ -40,6 +40,8 @@
 #include <grp.h>
 #include <gtk/gtk.h>
 #include <libxml/parser.h>
+#include <sys/types.h>
+#include <limits.h>
 #include <pwd.h>
 #include <stdlib.h>
 #include <sys/stat.h>


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