diff options
author | Werner Koch <[email protected]> | 2004-02-18 18:06:13 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2004-02-18 18:06:13 +0000 |
commit | 9bd34b95333a4806e50616db89bf5d4cf463541a (patch) | |
tree | fcad32d613890a373ae3a748fc4f7e48c718cf45 | |
parent | (memrchr): Fixed implementation. Taken from gpgme. (diff) | |
download | libassuan-9bd34b95333a4806e50616db89bf5d4cf463541a.tar.gz libassuan-9bd34b95333a4806e50616db89bf5d4cf463541a.zip |
(assuan_get_data_fp): Fail with ENOSYS if we
can't implement this.
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | configure.ac | 16 | ||||
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/assuan-handler.c | 5 |
4 files changed, 25 insertions, 4 deletions
@@ -1,6 +1,9 @@ Noteworthy changes in version 0.6.4 ------------------------------------------------ + * Will now also build on systems not providing funopen or + fopencookie. + Noteworthy changes in version 0.6.3 (2004-01-29) ------------------------------------------------ diff --git a/configure.ac b/configure.ac index 45aff1e..3f67b73 100644 --- a/configure.ac +++ b/configure.ac @@ -91,12 +91,20 @@ AC_CHECK_FUNCS(flockfile funlockfile) # Check for funopen AC_CHECK_FUNCS(funopen) if test $ac_cv_func_funopen != yes; then - # No funopen but we can implement that in terms of fopencookie. - AC_CHECK_FUNCS(fopencookie, AC_LIBOBJ(funopen), AC_MSG_ERROR([[ -No implementation of fopencookie or funopen available. -]])) + # No funopen but we can implement that in terms of fopencookie. + AC_CHECK_FUNCS(fopencookie) + if test $ac_cv_func_fopencookie = yes; then + AC_LIBOBJ([funopen]) + else + AC_MSG_WARN([ +*** +*** No implementation of fopencookie or funopen available. +*** The assuan_get_data_fp feature won't work. +***]) + fi fi + AC_REPLACE_FUNCS(isascii) AC_REPLACE_FUNCS(putc_unlocked) AC_REPLACE_FUNCS(memrchr) diff --git a/src/ChangeLog b/src/ChangeLog index 00825fb..fa5968a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2004-02-18 Werner Koch <[email protected]> + + * assuan-handler.c (assuan_get_data_fp): Fail with ENOSYS if we + can't implement this. + 2004-02-15 Werner Koch <[email protected]> * memrchr.c (memrchr): Fixed implementation. Taken from gpgme. diff --git a/src/assuan-handler.c b/src/assuan-handler.c index f135bc2..478a1e5 100644 --- a/src/assuan-handler.c +++ b/src/assuan-handler.c @@ -637,6 +637,7 @@ assuan_get_active_fds (ASSUAN_CONTEXT ctx, int what, FILE * assuan_get_data_fp (ASSUAN_CONTEXT ctx) { +#if defined (HAVE_FOPENCOOKIE) || defined (HAVE_FUNOPEN) if (ctx->outbound.data.fp) return ctx->outbound.data.fp; @@ -646,6 +647,10 @@ assuan_get_data_fp (ASSUAN_CONTEXT ctx) 0, _assuan_cookie_write_flush); ctx->outbound.data.error = 0; return ctx->outbound.data.fp; +#else + errno = ENOSYS; + return NULL; +#endif } |