common: Allow building of mkdir_p.c for Windows.
authorWerner Koch <wk@gnupg.org>
Thu, 8 Oct 2015 14:42:14 +0000 (16:42 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 8 Oct 2015 14:42:14 +0000 (16:42 +0200)
commit4c298525903f844eee95ecbcdc45f5ac034fa148
tree6f085badc4c0066dba198f994caec0045caafa9e
parentd7b8e76f9930750d669405dee3108c9bc8e87b91
common: Allow building of mkdir_p.c for Windows.

* common/mkdir_p.c: Change license and comment debug statements.
(amkdir_p, mkdir_p): Fail on malloc error and use default_errsource to
build an error code.  Change return value to gpg_error_t.
(amkdir_p): Use gnupg_mkdir.

* common/membuf.c: Include util.h first to avoid redefined macro
warnings.

Signed-off-by: Werner Koch <wk@gnupg.org>
common/membuf.c
common/mkdir_p.c
common/mkdir_p.h