mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
3054bc462c
Add a simple test to the configure script to detect getline. It's not important that the test run, just that it compiles and links without any errors. Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
13 lines
204 B
C
13 lines
204 B
C
#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);
|
|
}
|