Include appropriate header for basename(3). Index: imap/relocate_by_id.c --- imap/relocate_by_id.c.orig +++ imap/relocate_by_id.c @@ -42,6 +42,7 @@ #include +#include #ifdef HAVE_UNISTD_H #include #endif