diff --git a/DDEve/src/EventControl.cpp b/DDEve/src/EventControl.cpp
index ee6fc318baca749d1bb45a6b7bb33291f6d1f91e..da1b2fd256e2fac9c3dec69eedb10ae8da04a9cd 100644
--- a/DDEve/src/EventControl.cpp
+++ b/DDEve/src/EventControl.cpp
@@ -23,6 +23,7 @@
 #include "TGFileDialog.h"
 
 #include "TTree.h"
+#include <libgen.h>
 
 using namespace std;
 using namespace DD4hep;