Skip to content

Commit

Permalink
Include shquote() in configure tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kre committed Oct 31, 2024
1 parent 09eba37 commit 9b86dc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion tools/compat/compat_defs.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: compat_defs.h,v 1.122 2023/07/21 22:05:04 lukem Exp $ */
/* $NetBSD: compat_defs.h,v 1.123 2024/10/31 17:05:05 kre Exp $ */

#ifndef __NETBSD_COMPAT_DEFS_H__
#define __NETBSD_COMPAT_DEFS_H__
Expand Down Expand Up @@ -518,6 +518,9 @@ int pwcache_groupdb(int (*)(int), void (*)(void),
struct group * (*)(const char *), struct group * (*)(gid_t));
#endif

#if !HAVE_DECL_SHQUOTE
size_t shquote(const char *, char *, size_t);
#endif
#if !HAVE_DECL_STRLCAT
size_t strlcat(char *, const char *, size_t);
#endif
Expand Down
4 changes: 2 additions & 2 deletions tools/compat/configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: configure.ac,v 1.107 2023/07/20 16:21:23 lukem Exp $
# $NetBSD: configure.ac,v 1.108 2024/10/31 17:05:05 kre Exp $
#
# Autoconf definition file for libnbcompat.
#
Expand Down Expand Up @@ -184,7 +184,7 @@ AC_CHECK_DECLS([asprintf, asnprintf, vasprintf, vasnprintf, vsnprintf, fgetln, f
])
AC_CHECK_DECLS([atoll, heapsort, mkdtemp, mkstemp, reallocarr, reallocarray,
getsubopt, setenv, strtoi, strtoll, strtou, setprogname,
getsubopt, setenv, strtoi, strtoll, strtou, setprogname, shquote,
getprogname],,, [
#include <stdlib.h>
])
Expand Down

0 comments on commit 9b86dc8

Please sign in to comment.