From c68b9e5076094d60e8f767ffcd3bb9c224fc3fe9 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 18 May 2014 09:28:59 +0200 Subject: fix musl compile, patches from AlpineLinux --- .../nfs-utils/patches/patch-utils_statd_hostname_c | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/nfs-utils/patches/patch-utils_statd_hostname_c (limited to 'package/nfs-utils/patches/patch-utils_statd_hostname_c') diff --git a/package/nfs-utils/patches/patch-utils_statd_hostname_c b/package/nfs-utils/patches/patch-utils_statd_hostname_c new file mode 100644 index 000000000..c0863e42b --- /dev/null +++ b/package/nfs-utils/patches/patch-utils_statd_hostname_c @@ -0,0 +1,29 @@ +--- nfs-utils-1.3.0.orig/utils/statd/hostname.c 2014-03-25 16:12:07.000000000 +0100 ++++ nfs-utils-1.3.0/utils/statd/hostname.c 2014-05-17 21:47:07.089632108 +0200 +@@ -105,7 +105,7 @@ statd_present_address(const struct socka + * Look up the hostname; report exceptional errors. Caller must + * call freeaddrinfo(3) if a valid addrinfo is returned. + */ +-__attribute_malloc__ ++__attribute__((__malloc__)) + static struct addrinfo * + get_addrinfo(const char *hostname, const struct addrinfo *hint) + { +@@ -184,7 +184,7 @@ get_nameinfo(const struct sockaddr *sap, + * We won't monitor peers that don't have a reverse map. The canonical + * name gives us a key for our monitor list. + */ +-__attribute_malloc__ ++__attribute__((__malloc__)) + char * + statd_canonical_name(const char *hostname) + { +@@ -234,7 +234,7 @@ statd_canonical_name(const char *hostnam + * NULL if some error occurs. Caller must free the returned + * list with freeaddrinfo(3). + */ +-__attribute_malloc__ ++__attribute__((__malloc__)) + static struct addrinfo * + statd_canonical_list(const char *hostname) + { -- cgit v1.2.3