aboutsummaryrefslogtreecommitdiff
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-08-20 12:25:17 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-08-20 12:25:17 +0000
commit698e003fcdcfc9e464581d8e8e032a79c0779970 (patch)
tree5a639b03612812b80f9c1044747b36ff8f7f98bd /compat.h
parentcc2c06128988bc39e7f6f879ab958711bde2bcdf (diff)
downloadrtmux-698e003fcdcfc9e464581d8e8e032a79c0779970.tar.gz
rtmux-698e003fcdcfc9e464581d8e8e032a79c0779970.tar.bz2
rtmux-698e003fcdcfc9e464581d8e8e032a79c0779970.zip
Solaris has no bzero().
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h6
1 files changed, 5 insertions, 1 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 *);