summary refs log tree commit diff
path: root/imap.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-10-27 19:01:58 -0400
committerJune McEnroe <june@causal.agency>2020-10-27 19:01:58 -0400
commit31169e4821d6bd14d35682da6d808ee96cfc0ae8 (patch)
treeeb3cabe1aefa1f10a30b9350b3bb29c5cd9e64b5 /imap.c
parentUse open_memstream rather than fmemopen (diff)
downloadnotemap-31169e4821d6bd14d35682da6d808ee96cfc0ae8.tar.gz
notemap-31169e4821d6bd14d35682da6d808ee96cfc0ae8.zip
Rewrite compat and add configure script
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/imap.c b/imap.c
index b4aa6be..54c02bf 100644
--- a/imap.c
+++ b/imap.c
@@ -25,8 +25,6 @@
  * covered work.
  */
 
-#include "compat.h"
-
 #include <err.h>
 #include <stdbool.h>
 #include <stdio.h>
@@ -35,6 +33,14 @@
 #include <sysexits.h>
 #include <tls.h>
 
+FILE *funopen(
+	const void *cookie,
+	int (*readfn)(void *, char *, int),
+	int (*writefn)(void *, const char *, int),
+	fpos_t (*seekfn)(void *, fpos_t, int),
+	int (*closefn)(void *)
+);
+
 #include "imap.h"
 
 const char *Atoms[AtomCap] = {