Index: libgpg-error-1.16/src/Makefile.am =================================================================== --- libgpg-error-1.16/src/Makefile.am +++ libgpg-error-1.16/src/Makefile.am @@ -268,9 +268,14 @@ pre_mkheader_cmds = : parts_of_gpg_error_h += ./lock-obj-pub.native.h +if HAVE_W32_SYSTEM +./lock-obj-pub.native.h: Makefile gen-w32-lock-obj w32-lock-obj.h + ./gen-w32-lock-obj >$@ +else ./lock-obj-pub.native.h: Makefile gen-posix-lock-obj posix-lock-obj.h ./gen-posix-lock-obj >$@ endif +endif # We also depend on versioninfo.rc because that is build by # config.status and thus has up-to-date version numbers.