aboutsummaryrefslogtreecommitdiff
path: root/lib/uuid
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2015-07-12 23:09:15 -0400
committerTheodore Ts'o <tytso@mit.edu>2015-07-12 23:09:15 -0400
commitaee40b870cd70a884fd98a56d9c956945584b429 (patch)
tree414a1c60991d0737ca0fa123ffb11b7ceed99356 /lib/uuid
parentf1644c324bd6bc0ed8f48275d64ccde4ce13a044 (diff)
downloade2fsprogs-aee40b870cd70a884fd98a56d9c956945584b429.tar.gz
Eliminate unused function warnings from Android build
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'lib/uuid')
-rw-r--r--lib/uuid/gen_uuid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/uuid/gen_uuid.c b/lib/uuid/gen_uuid.c
index 22b45134..e89cccce 100644
--- a/lib/uuid/gen_uuid.c
+++ b/lib/uuid/gen_uuid.c
@@ -425,6 +425,7 @@ try_again:
return 0;
}
+#if defined(USE_UUIDD) && defined(HAVE_SYS_UN_H)
static ssize_t read_all(int fd, char *buf, size_t count)
{
ssize_t ret;
@@ -475,7 +476,7 @@ static void close_all_fds(void)
open("/dev/null", O_RDWR);
}
}
-
+#endif /* defined(USE_UUIDD) && defined(HAVE_SYS_UN_H) */
/*
* Try using the uuidd daemon to generate the UUID