Index: doc/api/doxygen.sh
===================================================================
--- doc/api/doxygen.sh	(revision 1130392)
+++ doc/api/doxygen.sh	(working copy)
@@ -683,6 +683,9 @@
 		sed -e 's+//[[:space:]]*DOXYGEN_SET_++' -e "s+@topdir@+$top_srcdir+g" >> "$subdir/Doxyfile"
 	apidox_specials "$srcdir/Mainpage.dox" "$subdir/Doxyfile"
 
+        # We always exclude private headers
+	echo "EXCLUDE_PATTERNS      += *_p.h" >> "$subdir/Doxyfile"
+        
 	excludes=`extract_line DOXYGEN_EXCLUDE`
 	if test -n "$excludes"; then
 		patterns=""
