diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-18 09:28:59 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-18 09:29:30 +0200 |
commit | c68b9e5076094d60e8f767ffcd3bb9c224fc3fe9 (patch) | |
tree | f3d2b986be5a8f0c5039658fc21e420488c07e5d /package/nfs-utils/patches/patch-utils_statd_sm-notify_c | |
parent | 60bc3658b3ef53082c17817690ab0c6bf7f25e26 (diff) |
fix musl compile, patches from AlpineLinux
Diffstat (limited to 'package/nfs-utils/patches/patch-utils_statd_sm-notify_c')
-rw-r--r-- | package/nfs-utils/patches/patch-utils_statd_sm-notify_c | 38 |
1 files changed, 38 insertions, 0 deletions
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) + { |