mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
2185. [port] sunos: libbind: check for ssize_t, memmove() and
memchr(). [RT #16463]
This commit is contained in:
parent
eea8cd8d1a
commit
2d78cc9624
3
CHANGES
3
CHANGES
@ -1,3 +1,6 @@
|
|||||||
|
2185. [port] sunos: libbind: check for ssize_t, memmove() and
|
||||||
|
memchr(). [RT #16463]
|
||||||
|
|
||||||
2184. [bug] bind9.xsl.h didn't build out of the source tree.
|
2184. [bug] bind9.xsl.h didn't build out of the source tree.
|
||||||
[RT #16830]
|
[RT #16830]
|
||||||
|
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
#undef POSIX_GETPWNAM_R
|
#undef POSIX_GETPWNAM_R
|
||||||
#undef POSIX_GETGRGID_R
|
#undef POSIX_GETGRGID_R
|
||||||
#undef POSIX_GETGRNAM_R
|
#undef POSIX_GETGRNAM_R
|
||||||
|
#undef HAVE_MEMMOVE
|
||||||
|
#undef HAVE_MEMCHR
|
||||||
|
|
||||||
#undef NEED_SETGROUPENT
|
#undef NEED_SETGROUPENT
|
||||||
#undef NEED_GETGROUPLIST
|
#undef NEED_GETGROUPLIST
|
||||||
@ -38,6 +40,7 @@
|
|||||||
|
|
||||||
#undef HAS_PW_CLASS
|
#undef HAS_PW_CLASS
|
||||||
|
|
||||||
|
#undef ssize_t
|
||||||
#undef uintptr_t
|
#undef uintptr_t
|
||||||
|
|
||||||
/* Shut up warnings about sputaux in stdio.h on BSD/OS pre-4.1 */
|
/* Shut up warnings about sputaux in stdio.h on BSD/OS pre-4.1 */
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
# PERFORMANCE OF THIS SOFTWARE.
|
# PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
AC_REVISION($Revision: 1.125 $)
|
AC_REVISION($Revision: 1.126 $)
|
||||||
|
|
||||||
AC_INIT(resolv/herror.c)
|
AC_INIT(resolv/herror.c)
|
||||||
AC_PREREQ(2.13)
|
AC_PREREQ(2.13)
|
||||||
@ -174,6 +174,7 @@ AC_CHECK_HEADERS(fcntl.h db.h paths.h sys/time.h unistd.h sys/sockio.h sys/selec
|
|||||||
AC_C_CONST
|
AC_C_CONST
|
||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
AC_TYPE_SIZE_T
|
AC_TYPE_SIZE_T
|
||||||
|
AC_CHECK_TYPE(ssize_t,signed)
|
||||||
AC_CHECK_TYPE(uintptr_t,unsigned long)
|
AC_CHECK_TYPE(uintptr_t,unsigned long)
|
||||||
AC_HEADER_TIME
|
AC_HEADER_TIME
|
||||||
#
|
#
|
||||||
@ -458,6 +459,8 @@ AC_SUBST(WANT_IRS_THREADS_OBJS)
|
|||||||
AC_SUBST(WANT_THREADS_OBJS)
|
AC_SUBST(WANT_THREADS_OBJS)
|
||||||
|
|
||||||
AC_CHECK_FUNC(strlcat, AC_DEFINE(HAVE_STRLCAT))
|
AC_CHECK_FUNC(strlcat, AC_DEFINE(HAVE_STRLCAT))
|
||||||
|
AC_CHECK_FUNC(memmove, AC_DEFINE(HAVE_MEMMOVE))
|
||||||
|
AC_CHECK_FUNC(memchr, AC_DEFINE(HAVE_MEMCHR))
|
||||||
|
|
||||||
AC_CHECK_FUNC(if_nametoindex,
|
AC_CHECK_FUNC(if_nametoindex,
|
||||||
[USE_IFNAMELINKID="#define USE_IFNAMELINKID 1"],
|
[USE_IFNAMELINKID="#define USE_IFNAMELINKID 1"],
|
||||||
@ -1117,6 +1120,17 @@ AC_TRY_COMPILE([
|
|||||||
ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"])
|
ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"])
|
||||||
AC_SUBST(ISC_PLATFORM_NEEDPORTT)
|
AC_SUBST(ISC_PLATFORM_NEEDPORTT)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(for struct timespec)
|
||||||
|
AC_TRY_COMPILE([
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <time.h>],
|
||||||
|
[struct timespec ts = { 0, 0 }; return (0);],
|
||||||
|
[AC_MSG_RESULT(yes)
|
||||||
|
ISC_PLATFORM_NEEDTIMESPEC="#undef ISC_PLATFORM_NEEDTIMESPEC"],
|
||||||
|
[AC_MSG_RESULT(no)
|
||||||
|
ISC_PLATFORM_NEEDTIMESPEC="#define ISC_PLATFORM_NEEDTIMESPEC 1"])
|
||||||
|
AC_SUBST(ISC_PLATFORM_NEEDTIMESPEC)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Check for addrinfo
|
# Check for addrinfo
|
||||||
#
|
#
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#if !defined(lint) && !defined(SABER)
|
#if !defined(lint) && !defined(SABER)
|
||||||
static const char rcsid[] = "$Id: ctl_clnt.c,v 1.8 2005/04/27 04:56:35 sra Exp $";
|
static const char rcsid[] = "$Id: ctl_clnt.c,v 1.9 2007/05/18 06:22:03 marka Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -114,6 +114,19 @@ static void touch_timer(struct ctl_cctx *);
|
|||||||
static void timer(evContext, void *,
|
static void timer(evContext, void *,
|
||||||
struct timespec, struct timespec);
|
struct timespec, struct timespec);
|
||||||
|
|
||||||
|
#ifndef HAVE_MEMCHR
|
||||||
|
static void *
|
||||||
|
memchr(const void *b, int c, size_t len) {
|
||||||
|
const unsigned char *p = b;
|
||||||
|
size_t i;
|
||||||
|
|
||||||
|
for (i = 0; i < len; i++, p++)
|
||||||
|
if (*p == (unsigned char)c)
|
||||||
|
return ((void *)p);
|
||||||
|
return (NULL);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Private data. */
|
/* Private data. */
|
||||||
|
|
||||||
static const char * const state_names[] = {
|
static const char * const state_names[] = {
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: port_before.h.in,v 1.25 2007/01/09 03:11:15 marka Exp $ */
|
/* $Id: port_before.h.in,v 1.26 2007/05/18 06:22:03 marka Exp $ */
|
||||||
|
|
||||||
#ifndef port_before_h
|
#ifndef port_before_h
|
||||||
#define port_before_h
|
#define port_before_h
|
||||||
@ -31,6 +31,16 @@ struct timezone; /* silence warning */
|
|||||||
#endif
|
#endif
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
|
#ifdef ISC_PLATFORM_NEEDTIMESPEC
|
||||||
|
#include <time.h> /* For time_t */
|
||||||
|
struct timespec {
|
||||||
|
time_t tv_sec; /* seconds */
|
||||||
|
long tv_nsec; /* nanoseconds */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
#ifndef HAVE_MEMMOVE
|
||||||
|
#define memmove(a,b,c) bcopy(b,a,c)
|
||||||
|
#endif
|
||||||
|
|
||||||
@WANT_IRS_GR@
|
@WANT_IRS_GR@
|
||||||
@WANT_IRS_NIS@
|
@WANT_IRS_NIS@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user