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.
unzip/bsdunzip_platform.h \
unzip/cmdline.c \
unzip/la_getline.c \
+ unzip/la_getline.h \
unzip/la_queue.h
if INC_WINDOWS_FILES
bsdunzip_platform.h
cmdline.c
la_getline.c
+ la_getline.h
la_queue.h
../libarchive_fe/err.c
../libarchive_fe/err.h
#include "bsdunzip_platform.h"
#include "la_queue.h"
+#include "la_getline.h"
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
--- /dev/null
+/*-
+ * 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 */