mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 11:18:48 +00:00
Solaris has no bzero().
This commit is contained in:
parent
cc2c061289
commit
698e003fcd
6
compat.h
6
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>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -142,6 +142,10 @@
|
|||||||
#define TTY_NAME_MAX 32
|
#define TTY_NAME_MAX 32
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_BZERO
|
||||||
|
#define bzero(buf, len) memset((buf), 0, (len));
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_STRCASESTR
|
#ifndef HAVE_STRCASESTR
|
||||||
/* strcasestr.c */
|
/* strcasestr.c */
|
||||||
char *strcasestr(const char *, const char *);
|
char *strcasestr(const char *, const char *);
|
||||||
|
9
configure
vendored
9
configure
vendored
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/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`}
|
TMUX_PLATFORM=${TMUX_PLATFORM:-`uname -s`}
|
||||||
|
|
||||||
@ -13,6 +13,7 @@ echo "# $TMUX_PLATFORM" >$CONFIG_MK
|
|||||||
|
|
||||||
cat <<EOF >>$CONFIG_H
|
cat <<EOF >>$CONFIG_H
|
||||||
#undef HAVE_ASPRINTF
|
#undef HAVE_ASPRINTF
|
||||||
|
#undef HAVE_BZERO
|
||||||
#undef HAVE_CRYPT_H
|
#undef HAVE_CRYPT_H
|
||||||
#undef HAVE_DAEMON
|
#undef HAVE_DAEMON
|
||||||
#undef HAVE_FGETLN
|
#undef HAVE_FGETLN
|
||||||
@ -44,6 +45,7 @@ case $TMUX_PLATFORM in
|
|||||||
cat <<EOF >>$CONFIG_H
|
cat <<EOF >>$CONFIG_H
|
||||||
#define HAVE_ASPRINTF
|
#define HAVE_ASPRINTF
|
||||||
#define HAVE_BITSTRING_H
|
#define HAVE_BITSTRING_H
|
||||||
|
#define HAVE_BZERO
|
||||||
#define HAVE_DAEMON
|
#define HAVE_DAEMON
|
||||||
#define HAVE_FGETLN
|
#define HAVE_FGETLN
|
||||||
#define HAVE_FORKPTY
|
#define HAVE_FORKPTY
|
||||||
@ -75,6 +77,7 @@ EOF
|
|||||||
Linux)
|
Linux)
|
||||||
cat <<EOF >>$CONFIG_H
|
cat <<EOF >>$CONFIG_H
|
||||||
#define HAVE_ASPRINTF
|
#define HAVE_ASPRINTF
|
||||||
|
#define HAVE_BZERO
|
||||||
#define HAVE_DAEMON
|
#define HAVE_DAEMON
|
||||||
#define HAVE_FORKPTY
|
#define HAVE_FORKPTY
|
||||||
#define HAVE_PATHS_H
|
#define HAVE_PATHS_H
|
||||||
@ -103,6 +106,7 @@ EOF
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
AIX)
|
AIX)
|
||||||
cat <<EOF >>$CONFIG_H
|
cat <<EOF >>$CONFIG_H
|
||||||
|
#define HAVE_BZERO
|
||||||
#define HAVE_DAEMON
|
#define HAVE_DAEMON
|
||||||
EOF
|
EOF
|
||||||
cat <<EOF >>$CONFIG_MK
|
cat <<EOF >>$CONFIG_MK
|
||||||
@ -160,6 +164,7 @@ EOF
|
|||||||
Darwin)
|
Darwin)
|
||||||
cat <<EOF >>$CONFIG_H
|
cat <<EOF >>$CONFIG_H
|
||||||
#define HAVE_ASPRINTF
|
#define HAVE_ASPRINTF
|
||||||
|
#define HAVE_BZERO
|
||||||
#define HAVE_DAEMON
|
#define HAVE_DAEMON
|
||||||
#define HAVE_FGETLN
|
#define HAVE_FGETLN
|
||||||
#define HAVE_FORKPTY
|
#define HAVE_FORKPTY
|
||||||
@ -189,6 +194,7 @@ EOF
|
|||||||
FreeBSD|DragonFly)
|
FreeBSD|DragonFly)
|
||||||
cat <<EOF >>$CONFIG_H
|
cat <<EOF >>$CONFIG_H
|
||||||
#define HAVE_ASPRINTF
|
#define HAVE_ASPRINTF
|
||||||
|
#define HAVE_BZERO
|
||||||
#define HAVE_DAEMON
|
#define HAVE_DAEMON
|
||||||
#define HAVE_FGETLN
|
#define HAVE_FGETLN
|
||||||
#define HAVE_FORKPTY
|
#define HAVE_FORKPTY
|
||||||
@ -218,6 +224,7 @@ EOF
|
|||||||
NetBSD)
|
NetBSD)
|
||||||
cat <<EOF >>$CONFIG_H
|
cat <<EOF >>$CONFIG_H
|
||||||
#define HAVE_ASPRINTF
|
#define HAVE_ASPRINTF
|
||||||
|
#define HAVE_BZERO
|
||||||
#define HAVE_DAEMON
|
#define HAVE_DAEMON
|
||||||
#define HAVE_FGETLN
|
#define HAVE_FGETLN
|
||||||
#define HAVE_FORKPTY
|
#define HAVE_FORKPTY
|
||||||
|
Loading…
Reference in New Issue
Block a user