--- a/cmdline/apt-internal-solver.cc
+++ b/cmdline/apt-internal-solver.cc
@@ -38,6 +38,9 @@
 #include <unistd.h>
 
 #include <apti18n.h>
+
+#define basename(name) (strrchr((name),'/') ? strrchr((name),'/')+1 : (name))
+
 									/*}}}*/
 
 static bool ShowHelp(CommandLine &)					/*{{{*/
