diff --git a/src/ChangeLog b/src/ChangeLog
index bcd37978..83ac595b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-04  Hrvoje Niksic  <hniksic@xemacs.org>
+
+	* wget.h: If gettext was found but libtintl.h wasn't, declare
+	gettext's return type to avoid type mismatches.
+
 2005-05-03  Hrvoje Niksic  <hniksic@xemacs.org>
 
 	* url.c (url_parse): Rename label `error' to avoid conflict with
diff --git a/src/wget.h b/src/wget.h
index f7467bb7..ec8e0534 100644
--- a/src/wget.h
+++ b/src/wget.h
@@ -54,7 +54,9 @@ so, delete this exception statement from your version.  */
 # define _(string) gettext (string)
 # ifdef HAVE_LIBINTL_H
 #  include <libintl.h>
-# endif /* HAVE_LIBINTL_H */
+# else  /* not HAVE_LIBINTL_H */
+   const char *gettext ();
+# endif /* not HAVE_LIBINTL_H */
 #else  /* not HAVE_NLS */
 # define _(string) (string)
 #endif /* not HAVE_NLS */