MSVC: compat: dirname() from <libgen.h>
diff --git a/compat/compat.h.in b/compat/compat.h.in
index 6672fcf..1c19b98 100644
--- a/compat/compat.h.in
+++ b/compat/compat.h.in
@@ -65,6 +65,7 @@
 #cmakedefine HAVE_LOCALTIME_R
 #cmakedefine HAVE_STRPTIME
 #cmakedefine HAVE_MMAP
+#cmakedefine HAVE_DIRNAME
 
 #ifndef bswap64
 #define bswap64(val) \