aboutsummaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-04-06 18:44:12 -0700
committerCarl Worth <cworth@cworth.org>2010-04-06 18:44:20 -0700
commit7d9851e293fad762cd959e9be819e48a26087cdc (patch)
tree282711dc64d5fa7d82f001ea173ad2e79e91e882 /compat
parent9ed5e095a81f23b286a10a4fd51c09769c8d62ee (diff)
parente7837ace186a09508140193c1dabe3317dadf797 (diff)
Merge branch 'debian'
These are the changes made between the notmuch 0.1 release and the release of Debian version 0.1-1. It's mostly changes to the debian directory, of course, but does also include some generally useful Makefile improvements.
Diffstat (limited to 'compat')
-rw-r--r--compat/README16
-rw-r--r--compat/have_getline.c13
2 files changed, 29 insertions, 0 deletions
diff --git a/compat/README b/compat/README
new file mode 100644
index 00000000..cd32c56f
--- /dev/null
+++ b/compat/README
@@ -0,0 +1,16 @@
+notmuch/comapt
+
+This directory consists of two things:
+
+1. Small programs used by the notmuch configure script to test for the
+ availability of certain system features, (library functions, etc.).
+
+ For example: have_getline.c
+
+2. Compatibility implementations of those system features for systems
+ that don't provide their own versions.
+
+ For example: getline.c
+
+ The compilation of these files is made conditional on the output of
+ the test programs from [1].
diff --git a/compat/have_getline.c b/compat/have_getline.c
new file mode 100644
index 00000000..a8bcd17e
--- /dev/null
+++ b/compat/have_getline.c
@@ -0,0 +1,13 @@
+#define _GNU_SOURCE
+#include <stdio.h>
+#include <sys/types.h>
+
+int main()
+{
+ ssize_t count = 0;
+ size_t n = 0;
+ char **lineptr = NULL;
+ FILE *stream = NULL;
+
+ count = getline(lineptr, &n, stream);
+}