https://sourceforge.net/p/linuxquota/bugs/145/

--- a/setproject.c
+++ b/setproject.c
@@ -5,6 +5,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <getopt.h>
+#include <libgen.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
