diff --git a/include/ac/alloca.h b/include/ac/alloca.h
index 69e823d84189bf848ad8cff1e6ae468af09bfd3f..e8bb452fe2b0bc64d2f783738a981d1843357102 100644
--- a/include/ac/alloca.h
+++ b/include/ac/alloca.h
@@ -23,7 +23,7 @@
 #pragma alloca
 #  else
 #   ifndef alloca /* predefined by HP cc +Olibcalls */
-char *alloca ();
+extern char *alloca ();
 #   endif
 #  endif
 # endif
diff --git a/include/ac/setproctitle.h b/include/ac/setproctitle.h
index 2866d211f561bc2c20d371c2b03d860ce7f204d1..f97074e7c2a44ecf4515bb27b922dc8a13e52a19 100644
--- a/include/ac/setproctitle.h
+++ b/include/ac/setproctitle.h
@@ -18,7 +18,7 @@
 #	include <libutil.h>
 #else
 	/* use lutil version */
-	void setproctitle LDAP_P((const char *fmt, ...));
+	extern void setproctitle LDAP_P((const char *fmt, ...));
 	extern int Argc;
 	extern char **Argv;
 #endif