diff --git a/w32/Makefile.am b/w32/Makefile.am
index b0b47347..5527f778 100644
--- a/w32/Makefile.am
+++ b/w32/Makefile.am
@@ -22,4 +22,5 @@ noinst_LIBRARIES = libw32.a
 libw32_a_SOURCES =  subproc/misc.c subproc/sub_proc.c subproc/w32err.c \
 		    compat/posixfcn.c pathstuff.c w32os.c
 
-libw32_a_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/subproc -I$(top_srcdir)
+libw32_a_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/subproc -I$(top_srcdir) \
+		    -I$(top_srcdir)/glob