From 698e003fcdcfc9e464581d8e8e032a79c0779970 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 20 Aug 2009 12:25:17 +0000 Subject: Solaris has no bzero(). --- compat.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'compat.h') 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 *); -- cgit