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 --- .../patches/patch-utils_statd_sm-notify_c | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 package/nfs-utils/patches/patch-utils_statd_sm-notify_c (limited to 'package/nfs-utils/patches/patch-utils_statd_sm-notify_c') diff --git a/package/nfs-utils/patches/patch-utils_statd_sm-notify_c b/package/nfs-utils/patches/patch-utils_statd_sm-notify_c new file mode 100644 index 000000000..76bef0d37 --- /dev/null +++ b/package/nfs-utils/patches/patch-utils_statd_sm-notify_c @@ -0,0 +1,38 @@ +--- nfs-utils-1.3.0.orig/utils/statd/sm-notify.c 2014-03-25 16:12:07.000000000 +0100 ++++ nfs-utils-1.3.0/utils/statd/sm-notify.c 2014-05-17 21:47:07.089632108 +0200 +@@ -74,7 +74,7 @@ static int record_pid(void); + + static struct nsm_host * hosts = NULL; + +-__attribute_malloc__ ++__attribute__((__malloc__)) + static struct addrinfo * + smn_lookup(const char *name) + { +@@ -149,7 +149,7 @@ smn_get_hostname(const struct sockaddr * + * if the canonical name doesn't exist or cannot be determined. + * The caller must free the result with free(3). + */ +-__attribute_malloc__ ++__attribute__((__malloc__)) + static char * + smn_verify_my_name(const char *name) + { +@@ -189,7 +189,7 @@ smn_verify_my_name(const char *name) + return retval; + } + +-__attribute_malloc__ ++__attribute__((__malloc__)) + static struct nsm_host * + smn_alloc_host(const char *hostname, const char *mon_name, + const char *my_name, const time_t timestamp) +@@ -343,7 +343,7 @@ static int smn_socket(void) + * If admin specified a source address or srcport, then convert those + * to a sockaddr and return it. Otherwise, return an ANYADDR address. + */ +-__attribute_malloc__ ++__attribute__((__malloc__)) + static struct addrinfo * + smn_bind_address(const char *srcaddr, const char *srcport) + { -- cgit v1.2.3