diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 9 | ||||
-rw-r--r-- | tests/t-syserror.c | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 488f86f..be63260 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -19,9 +19,16 @@ ## Process this file with automake to produce Makefile.in +if HAVE_W32CE_SYSTEM +extra_includes = -idirafter $(top_builddir)/src/gpg-extra +else +extra_includes = +endif + + TESTS = t-strerror t-syserror -INCLUDES = -I$(top_builddir)/src +INCLUDES = -I$(top_builddir)/src $(extra_includes) LDADD = ../src/libgpg-error.la diff --git a/tests/t-syserror.c b/tests/t-syserror.c index b6973c3..25de86f 100644 --- a/tests/t-syserror.c +++ b/tests/t-syserror.c @@ -64,7 +64,7 @@ main (int argc, char *argv[]) return 1; } - errno = 0; + gpg_err_set_errno (0); ec = gpg_err_code_from_syserror (); if (ec != GPG_ERR_MISSING_ERRNO) |