--- libreoffice-3.5.0/odk/source/unowinreg/win/makefile.mk-old	2011-06-25 10:18:32.000000000 +0200
+++ libreoffice-3.5.0/odk/source/unowinreg/win/makefile.mk	2011-06-25 10:19:22.000000000 +0200
@@ -63,6 +63,7 @@
 
 $(BIN)$/unowinreg.dll : unowinreg.cxx
     $(MINGWCXX) -Wall -D_JNI_IMPLEMENTATION_ $(JAVA_INCLUDES) \
+	-I/usr/lib/gcc/`dpkg-architecture -qDEB_BUILD_GNU_TYPE`/`gcc --version | head -n 1 | awk '{ print $$4 }'`/include \
         -shared -o $(BIN)$/unowinreg.dll unowinreg.cxx \
             -Wl,--kill-at -lkernel32 -ladvapi32
     $(MINGWSTRIP) $(BIN)$/unowinreg.dll
