mirror of
https://github.com/libarchive/libarchive.git
synced 2026-01-26 15:39:09 +00:00
The fallback for when `getline` is not implemented in libc was not compiling due to the fact that the definition for it was missing, so add the definition.
17 lines
327 B
C
17 lines
327 B
C
/*-
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2011 The NetBSD Foundation, Inc.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef LA_GETLINE_H_INCLUDED
|
|
#define LA_GETLINE_H_INCLUDED
|
|
|
|
#include <stdio.h>
|
|
#ifndef HAVE_GETLINE
|
|
ssize_t getline(char **buf, size_t *bufsiz, FILE *fp);
|
|
#endif
|
|
|
|
#endif /* !LA_GETLINE_H_INCLUDED */
|