aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compat.h6
-rwxr-xr-xconfigure9
2 files changed, 13 insertions, 2 deletions
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 <nicm@users.sourceforge.net>
@@ -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 <<EOF >>$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 <<EOF >>$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 <<EOF >>$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 <<EOF >>$CONFIG_H
+#define HAVE_BZERO
#define HAVE_DAEMON
EOF
cat <<EOF >>$CONFIG_MK
@@ -160,6 +164,7 @@ EOF
Darwin)
cat <<EOF >>$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 <<EOF >>$CONFIG_H
#define HAVE_ASPRINTF
+#define HAVE_BZERO
#define HAVE_DAEMON
#define HAVE_FGETLN
#define HAVE_FORKPTY
@@ -218,6 +224,7 @@ EOF
NetBSD)
cat <<EOF >>$CONFIG_H
#define HAVE_ASPRINTF
+#define HAVE_BZERO
#define HAVE_DAEMON
#define HAVE_FGETLN
#define HAVE_FORKPTY