Skip to content

Commit

Permalink
Conditionally include malloc.h
Browse files Browse the repository at this point in the history
  • Loading branch information
steve committed Apr 30, 2003
1 parent cb0a9b2 commit ea3048f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libveriuser/a_vcl.c
Expand Up @@ -17,12 +17,15 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: a_vcl.c,v 1.3 2003/04/24 02:02:37 steve Exp $"
#ident "$Id: a_vcl.c,v 1.4 2003/04/30 01:09:29 steve Exp $"
#endif

#include <vpi_user.h>
#include <acc_user.h>
#include <stdlib.h>
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#include "priv.h"

struct vcl_record {
Expand Down Expand Up @@ -87,6 +90,9 @@ void acc_vcl_delete(handle obj, PLI_INT32(*consumer)(p_vc_record),

/*
* $Log: a_vcl.c,v $
* Revision 1.4 2003/04/30 01:09:29 steve
* Conditionally include malloc.h
*
* Revision 1.3 2003/04/24 02:02:37 steve
* Clean up some simple warnings.
*
Expand Down
2 changes: 2 additions & 0 deletions libveriuser/configure.in
Expand Up @@ -7,6 +7,8 @@ AC_PROG_RANLIB
AC_CYGWIN
AC_EXEEXT

AC_CHECK_HEADERS(malloc.h)

# Darwin requires -no-cpp-precomp
case "${host}" in
*-*-darwin*)
Expand Down

0 comments on commit ea3048f

Please sign in to comment.