-/* The `getdelim' function is only declared if the following symbol
- is defined. */
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE 1
-#endif
-
-#include <stddef.h>
-#include <stdio.h>
-
-#if defined __GNU_LIBRARY__ && HAVE_GETDELIM
-
-int
-getline (char **lineptr, size_t *linesize, FILE *stream)
-{
- return getdelim (lineptr, linesize, '\n', stream);
-}
-
-#else /* ! have getdelim */
-
-#include "getndelim2.h"
-
-int
-getline (char **lineptr, size_t *linesize, FILE *stream)