aboutsummaryrefslogtreecommitdiffstats
path: root/common/iobuf.h
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-08-12 00:19:05 +0000
committerNeal H. Walfield <[email protected]>2015-08-20 12:16:19 +0000
commit4e32c602f5c40cca5f8f40e642ccb10d3f8c5614 (patch)
tree4cbf3b36a560b9f46ec136cdc27294cde5185f52 /common/iobuf.h
parentcommon/iobuf.c: Fix filter type for iobuf_temp_with_content. (diff)
downloadgnupg-4e32c602f5c40cca5f8f40e642ccb10d3f8c5614.tar.gz
gnupg-4e32c602f5c40cca5f8f40e642ccb10d3f8c5614.zip
common/iobuf.c: Better respect boundary conditions in iobuf_read_line.
* common/iobuf.c (iobuf_read_line): Be more careful with boundary conditions. * common/iobuf.h: Include <gpg-error.h>. * common/t-iobuf.c: New file. * common/Makefile.am (module_tests): Add t-iobuf. (t_mbox_util_LDADD): New variable. -- Signed-off-by: Neal H. Walfield <[email protected]>.
Diffstat (limited to 'common/iobuf.h')
-rw-r--r--common/iobuf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/iobuf.h b/common/iobuf.h
index c742c6403..900a12b62 100644
--- a/common/iobuf.h
+++ b/common/iobuf.h
@@ -31,6 +31,9 @@
#ifndef GNUPG_COMMON_IOBUF_H
#define GNUPG_COMMON_IOBUF_H
+/* For estream_t. */
+#include <gpg-error.h>
+
#include "../common/types.h"
#include "../common/sysutils.h"