summaryrefslogtreecommitdiff
path: root/notmuch-private.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-19 16:38:44 -0700
committerCarl Worth <cworth@cworth.org>2009-10-19 16:38:44 -0700
commit371091139abb00e0eb6b17cd19311e2a30fd7470 (patch)
tree8e7c33e71057657100061ec18eab0701ff891fe2 /notmuch-private.h
parent45f0d7bcab72ff6b8375804d3e518f961bd9a96f (diff)
Rework message parsing to use getline rather than mmap.
The line-based parsing can be a bit awkward when wanting to peek ahead, (say, for folded header values), but it's so convenient to be able to trust that a string terminator exists on every line so it cleans up the code considerably.
Diffstat (limited to 'notmuch-private.h')
-rw-r--r--notmuch-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/notmuch-private.h b/notmuch-private.h
index b7d27e9..449aff7 100644
--- a/notmuch-private.h
+++ b/notmuch-private.h
@@ -23,6 +23,8 @@
#include "notmuch.h"
+#define _GNU_SOURCE /* For getline */
+
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>