libarchive/unzip/la_getline.h
Julian Uy b5d95321d4
Add missing definition for getline polyfill (#2425)
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.
2024-12-06 07:57:27 -08:00

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 */