--- a/src/lib/route.c
+++ b/src/lib/route.c
@@ -12,6 +12,7 @@
 
 #include <netlink/cli/utils.h>
 #include <netlink/cli/route.h>
+#include "getsubopt.h"
 
 struct rtnl_route *nl_cli_route_alloc(void)
 {
