diff --git a/bfd/hosts/hppabsd.h b/bfd/hosts/hppabsd.h
index 534ec4ed3f8..ad9660e7695 100644
--- a/bfd/hosts/hppabsd.h
+++ b/bfd/hosts/hppabsd.h
@@ -9,9 +9,8 @@
 #include <ctype.h>
 #include <string.h>
 #include <sys/file.h>
-
-extern PTR  malloc PARAMS ((unsigned));
-extern void free   PARAMS ((PTR));
+#include <stdlib.h>
+#include <unistd.h>
 
 #define HOST_HPPABSD