]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libuuid: remove function alias
authorKarel Zak <kzak@redhat.com>
Wed, 1 Apr 2020 08:21:58 +0000 (10:21 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 1 Apr 2020 08:21:58 +0000 (10:21 +0200)
It seems the 'alias' attribute is not portable enough.

libuuid/src/unparse.c:72:17: error: only weak aliases are supported on darwin
        __attribute__((alias("uuid_unparse_lower")));

Signed-off-by: Karel Zak <kzak@redhat.com>
libuuid/src/unparse.c

index 0e7e8eae48bec4ae9beecff1cf36ffc30390fda3..631514e5463a1eb62a0aa5d8d663c188140d67de 100644 (file)
@@ -64,10 +64,11 @@ void uuid_unparse_upper(const uuid_t uu, char *out)
        uuid_fmt(uu, out, hexdigits_upper);
 }
 
-#ifdef UUID_UNPARSE_DEFAULT_UPPER
 void uuid_unparse(const uuid_t uu, char *out)
-       __attribute__((alias("uuid_unparse_upper")));
+{
+#ifdef UUID_UNPARSE_DEFAULT_UPPER
+       uuid_fmt(uu, out, hexdigits_upper);
 #else
-void uuid_unparse(const uuid_t uu, char *out)
-       __attribute__((alias("uuid_unparse_lower")));
+       uuid_fmt(uu, out, hexdigits_lower);
 #endif
+}