summaryrefslogtreecommitdiff
path: root/sysutils/policykit/files/patch-src_polkit_polkit-policy-cache.c
blob: 793b531106a47a0fd5a9bcf30645f8dc098710b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- src/polkit/polkit-policy-cache.c.orig	2007-11-29 01:14:09.000000000 -0500
+++ src/polkit/polkit-policy-cache.c	2007-12-24 14:51:04.000000000 -0500
@@ -98,7 +98,11 @@ PolKitPolicyCache *
 _polkit_policy_cache_new (const char *dirname, polkit_bool_t load_descriptions, PolKitError **error)
 {
         DIR *dir;
+#ifdef HAVE_READDIR64
         struct dirent64 *d;
+#else
+	struct dirent *d;
+#endif
         PolKitPolicyCache *pc;
 
         dir = NULL;
@@ -119,7 +123,11 @@ _polkit_policy_cache_new (const char *di
                 goto out;
         }
 
+#ifdef HAVE_READDIR64
         while ((d = readdir64 (dir)) != NULL) {
+#else
+	while ((d = readdir (dir)) != NULL) {
+#endif
                 char *path;
                 PolKitPolicyFile *pf;
                 PolKitError *pk_error;