diff --git a/src/document/html/parser/link.c b/src/document/html/parser/link.c
index 86417a8d7..6a6435ef7 100644
--- a/src/document/html/parser/link.c
+++ b/src/document/html/parser/link.c
@@ -8,6 +8,8 @@
#define _GNU_SOURCE /* strcasestr() */
#endif
+#include /* basename() */
+
#include
#include
#include