$NetBSD$

--- libiberty/xmemdup.c.orig	2016-05-31 11:08:54.443460000 +0000
+++ libiberty/xmemdup.c
@@ -21,6 +21,7 @@ allocated, the remaining memory is zeroe
 #endif
 #include "ansidecl.h"
 #include "libiberty.h"
+#define PTR	void *
 
 #include <sys/types.h> /* For size_t. */
 #ifdef HAVE_STRING_H
