diff -ruw src.orig//support/export/hostname.c src/support/export/hostname.c
--- src.orig//support/export/hostname.c	2014-06-10 17:31:21.798143009 +0200
+++ src/support/export/hostname.c	2014-06-10 17:31:40.842136759 +0200
@@ -91,7 +91,7 @@
  * Returns address info structure, or NULL if an error occurs.  Caller
  * must free the returned structure with freeaddrinfo(3).
  */
-__attribute_malloc__
+__attribute__ ((__malloc__))
 struct addrinfo *
 host_pton(const char *paddr)
 {
@@ -153,7 +153,7 @@
  * if no information is available for @hostname.  Caller must free the
  * returned structure with freeaddrinfo(3).
  */
-__attribute_malloc__
+__attribute__ ((__malloc__))
 struct addrinfo *
 host_addrinfo(const char *hostname)
 {
@@ -199,7 +199,7 @@
  * the string.
  */
 #ifdef HAVE_GETNAMEINFO
-__attribute_malloc__
+__attribute__ ((__malloc__))
 char *
 host_canonname(const struct sockaddr *sap)
 {
@@ -234,7 +234,7 @@
 	return strdup(buf);
 }
 #else	/* !HAVE_GETNAMEINFO */
-__attribute_malloc__
+__attribute__ ((__malloc__))
 char *
 host_canonname(const struct sockaddr *sap)
 {
@@ -266,7 +266,7 @@
  *
  * Caller must free the returned structure with freeaddrinfo(3).
  */
-__attribute_malloc__
+__attribute__ ((__malloc__))
 struct addrinfo *
 host_reliable_addrinfo(const struct sockaddr *sap)
 {
@@ -313,7 +313,7 @@
  * Caller must free the returned structure with freeaddrinfo(3).
  */
 #ifdef HAVE_GETNAMEINFO
-__attribute_malloc__
+__attribute__ ((__malloc__))
 struct addrinfo *
 host_numeric_addrinfo(const struct sockaddr *sap)
 {
@@ -361,7 +361,7 @@
 	return ai;
 }
 #else	/* !HAVE_GETNAMEINFO */
-__attribute_malloc__
+__attribute__ ((__malloc__))
 struct addrinfo *
 host_numeric_addrinfo(const struct sockaddr *sap)
 {
diff -ruw src.orig//support/include/exportfs.h src/support/include/exportfs.h
--- src.orig//support/include/exportfs.h	2014-06-10 17:31:21.802143007 +0200
+++ src/support/include/exportfs.h	2014-06-10 17:31:25.246141877 +0200
@@ -156,15 +156,15 @@
 
 char *				host_ntop(const struct sockaddr *sap,
 						char *buf, const size_t buflen);
-__attribute_malloc__
+__attribute__ ((__malloc__))
 struct addrinfo *		host_pton(const char *paddr);
-__attribute_malloc__
+__attribute__ ((__malloc__))
 struct addrinfo *		host_addrinfo(const char *hostname);
-__attribute_malloc__
+__attribute__ ((__malloc__))
 char *				host_canonname(const struct sockaddr *sap);
-__attribute_malloc__
+__attribute__ ((__malloc__))
 struct addrinfo *		host_reliable_addrinfo(const struct sockaddr *sap);
-__attribute_malloc__
+__attribute__ ((__malloc__))
 struct addrinfo *		host_numeric_addrinfo(const struct sockaddr *sap);
 
 int				rmtab_read(void);
diff -ruw src.orig//support/nfs/svc_create.c src/support/nfs/svc_create.c
--- src.orig//support/nfs/svc_create.c	2014-06-10 17:31:21.798143009 +0200
+++ src/support/nfs/svc_create.c	2014-06-10 17:31:28.278140882 +0200
@@ -113,7 +113,7 @@
  *
  * Otherwise NULL is returned if an error occurs.
  */
-__attribute_malloc__
+__attribute__ ((__malloc__))
 static struct addrinfo *
 svc_create_bindaddr(struct netconfig *nconf, const uint16_t port)
 {
diff -ruw src.orig//utils/statd/hostname.c src/utils/statd/hostname.c
--- src.orig//utils/statd/hostname.c	2014-06-10 17:31:21.810143005 +0200
+++ src/utils/statd/hostname.c	2014-06-10 17:31:33.154139282 +0200
@@ -105,7 +105,7 @@
  * 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 @@
  * 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 @@
  * 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)
 {
diff -ruw src.orig//utils/statd/sm-notify.c src/utils/statd/sm-notify.c
--- src.orig//utils/statd/sm-notify.c	2014-06-10 17:31:21.810143005 +0200
+++ src/utils/statd/sm-notify.c	2014-06-10 17:31:33.162139279 +0200
@@ -74,7 +74,7 @@
 
 static struct nsm_host *	hosts = NULL;
 
-__attribute_malloc__
+__attribute__ ((__malloc__))
 static struct addrinfo *
 smn_lookup(const char *name)
 {
@@ -149,7 +149,7 @@
  * 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 @@
 	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 @@
  * 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)
 {
diff -ruw src.orig//utils/statd/statd.h src/utils/statd/statd.h
--- src.orig//utils/statd/statd.h	2014-06-10 17:31:21.810143005 +0200
+++ src/utils/statd/statd.h	2014-06-10 17:31:33.166139278 +0200
@@ -25,7 +25,7 @@
 extern _Bool	statd_matchhostname(const char *hostname1, const char *hostname2);
 extern _Bool	statd_present_address(const struct sockaddr *sap, char *buf,
 					const size_t buflen);
-__attribute_malloc__
+__attribute__ ((__malloc__))
 extern char *	statd_canonical_name(const char *hostname);
 
 extern void	my_svc_run(void);
