Add getline(3) compat glue.

This commit is contained in:
joerg 2011-11-03 14:13:53 +00:00
parent ff10397929
commit b0027af054
4 changed files with 15 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: compat_defs.h,v 1.81 2011/09/05 07:38:52 jdc Exp $ */
/* $NetBSD: compat_defs.h,v 1.82 2011/11/03 14:13:53 joerg Exp $ */
#ifndef __NETBSD_COMPAT_DEFS_H__
#define __NETBSD_COMPAT_DEFS_H__
@ -276,6 +276,11 @@ int flock(int, int);
char *fparseln(FILE *, size_t *, size_t *, const char [3], int);
#endif
#if !HAVE_GETLINE
ssize_t getdelim(char **, size_t *, int, FILE *);
ssize_t getline(char **, size_t *, FILE *);
#endif
#if !HAVE_ISSETUGID
int issetugid(void);
#endif

View File

@ -4981,8 +4981,8 @@ EOF
fi
for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
esetfunc fgetln flock fpurge __fpurge futimes getopt getopt_long \
group_from_gid gid_from_group \
esetfunc fgetln flock fpurge __fpurge futimes getline \
getopt getopt_long group_from_gid gid_from_group \
heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb \
pwrite raise_default_signal random setenv \

View File

@ -1,4 +1,4 @@
# $NetBSD: configure.ac,v 1.73 2011/08/14 20:22:42 apb Exp $
# $NetBSD: configure.ac,v 1.74 2011/11/03 14:13:53 joerg Exp $
#
# Autoconf definition file for libnbcompat.
#
@ -146,8 +146,8 @@ AC_CHECK_DECLS(sys_signame,,, [#include <signal.h>])
# Library functions (where a .h check isn't enough).
AC_FUNC_ALLOCA
AC_CHECK_FUNCS(atoll asprintf asnprintf basename devname dirfd dirname \
esetfunc fgetln flock fpurge __fpurge futimes getopt getopt_long \
group_from_gid gid_from_group \
esetfunc fgetln flock fpurge __fpurge futimes getline \
getopt getopt_long group_from_gid gid_from_group \
heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb \
pwrite raise_default_signal random setenv \

View File

@ -1,6 +1,6 @@
/* nbtool_config.h.in. Generated automatically from configure.ac by autoheader. */
/* $NetBSD: nbtool_config.h.in,v 1.26 2011/08/14 20:25:01 apb Exp $ */
/* $NetBSD: nbtool_config.h.in,v 1.27 2011/11/03 14:13:53 joerg Exp $ */
#ifndef __NETBSD_NBTOOL_CONFIG_H__
#define __NETBSD_NBTOOL_CONFIG_H__
@ -267,6 +267,9 @@
/* Define if you have the `futimes' function. */
#undef HAVE_FUTIMES
/* Define if you have the `getline' function. */
#undef HAVE_GETLINE
/* Define if you have the `getopt' function. */
#undef HAVE_GETOPT