diff --git a/compat.h b/compat.h index 401b089a..0650dc1c 100644 --- a/compat.h +++ b/compat.h @@ -1,4 +1,4 @@ -/* $Id: compat.h,v 1.12 2009-08-20 05:34:58 nicm Exp $ */ +/* $Id: compat.h,v 1.13 2009-08-20 12:25:17 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -142,6 +142,10 @@ #define TTY_NAME_MAX 32 #endif +#ifndef HAVE_BZERO +#define bzero(buf, len) memset((buf), 0, (len)); +#endif + #ifndef HAVE_STRCASESTR /* strcasestr.c */ char *strcasestr(const char *, const char *); diff --git a/configure b/configure index c6a96b4c..b56f2ce6 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: configure,v 1.27 2009-08-20 05:34:58 nicm Exp $ +# $Id: configure,v 1.28 2009-08-20 12:25:17 nicm Exp $ TMUX_PLATFORM=${TMUX_PLATFORM:-`uname -s`} @@ -13,6 +13,7 @@ echo "# $TMUX_PLATFORM" >$CONFIG_MK cat <>$CONFIG_H #undef HAVE_ASPRINTF +#undef HAVE_BZERO #undef HAVE_CRYPT_H #undef HAVE_DAEMON #undef HAVE_FGETLN @@ -44,6 +45,7 @@ case $TMUX_PLATFORM in cat <>$CONFIG_H #define HAVE_ASPRINTF #define HAVE_BITSTRING_H +#define HAVE_BZERO #define HAVE_DAEMON #define HAVE_FGETLN #define HAVE_FORKPTY @@ -75,6 +77,7 @@ EOF Linux) cat <>$CONFIG_H #define HAVE_ASPRINTF +#define HAVE_BZERO #define HAVE_DAEMON #define HAVE_FORKPTY #define HAVE_PATHS_H @@ -103,6 +106,7 @@ EOF # ------------------------------------------------------------------------------ AIX) cat <>$CONFIG_H +#define HAVE_BZERO #define HAVE_DAEMON EOF cat <>$CONFIG_MK @@ -160,6 +164,7 @@ EOF Darwin) cat <>$CONFIG_H #define HAVE_ASPRINTF +#define HAVE_BZERO #define HAVE_DAEMON #define HAVE_FGETLN #define HAVE_FORKPTY @@ -189,6 +194,7 @@ EOF FreeBSD|DragonFly) cat <>$CONFIG_H #define HAVE_ASPRINTF +#define HAVE_BZERO #define HAVE_DAEMON #define HAVE_FGETLN #define HAVE_FORKPTY @@ -218,6 +224,7 @@ EOF NetBSD) cat <>$CONFIG_H #define HAVE_ASPRINTF +#define HAVE_BZERO #define HAVE_DAEMON #define HAVE_FGETLN #define HAVE_FORKPTY