diff --git a/src/find-mount-point.h b/src/find-mount-point.h
index 028b2500c..a1bbcdc92 100644
--- a/src/find-mount-point.h
+++ b/src/find-mount-point.h
@@ -14,4 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see . */
-extern char *find_mount_point (char const *, struct stat const *);
+#include
+
+extern char *find_mount_point (char const *, struct stat const *)
+ _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE;