summaryrefslogtreecommitdiff
path: root/src/basic/stat-util.h
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-04-27 11:30:28 +0200
committerSven Eden <yamakuzure@gmx.net>2017-05-17 15:22:16 +0200
commit66ecc207e203db5434610395cd04c40ae8727b58 (patch)
tree4808a261a6e58dcdbc9e8616f18cce65b2a49b83 /src/basic/stat-util.h
parent4f8a2329ef626675895974d53a6afad68a0d255a (diff)
Prep v229: Add missing fixes from upstream [1/6] src/basic
Diffstat (limited to 'src/basic/stat-util.h')
-rw-r--r--src/basic/stat-util.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/basic/stat-util.h b/src/basic/stat-util.h
index 48f8e5d8a..077bfdd50 100644
--- a/src/basic/stat-util.h
+++ b/src/basic/stat-util.h
@@ -60,9 +60,8 @@ int path_is_os_tree(const char *path);
int files_same(const char *filea, const char *fileb);
/* The .f_type field of struct statfs is really weird defined on
- * different archs. Let's use our own type we know is sufficiently
- * larger to store the possible values. */
-typedef long statfs_f_type_t;
+ * different archs. Let's give its type a name. */
+typedef typeof(((struct statfs*)NULL)->f_type) statfs_f_type_t;
bool is_fs_type(const struct statfs *s, statfs_f_type_t magic_value) _pure_;
#if 0 /// UNNEEDED by elogind