1 /*	$NetBSD: stdlib.h,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $	*/
2 
3 /* Generic stdlib.h */
4 /* OpenLDAP: pkg/ldap/include/ac/stdlib.h,v 1.19.2.6 2010/04/13 20:22:52 kurt Exp */
5 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
6  *
7  * Copyright 1998-2010 The OpenLDAP Foundation.
8  * All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted only as authorized by the OpenLDAP
12  * Public License.
13  *
14  * A copy of this license is available in file LICENSE in the
15  * top-level directory of the distribution or, alternatively, at
16  * <http://www.OpenLDAP.org/license.html>.
17  */
18 
19 #ifndef _AC_STDLIB_H
20 #define _AC_STDLIB_H
21 
22 #if defined( HAVE_CSRIMALLOC )
23 #include <stdio.h>
24 #define MALLOC_TRACE
25 #include <libmalloc.h>
26 #endif
27 
28 #include <stdlib.h>
29 
30 /* Ignore malloc.h if we have STDC_HEADERS */
31 #if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
32 #	include <malloc.h>
33 #endif
34 
35 #ifndef EXIT_SUCCESS
36 #	define EXIT_SUCCESS 0
37 #	define EXIT_FAILURE 1
38 #endif
39 
40 #ifdef HAVE_LIMITS_H
41 #include <limits.h>
42 #endif
43 
44 #if defined(LINE_MAX)
45 #	define AC_LINE_MAX LINE_MAX
46 #else
47 #	define AC_LINE_MAX 2048 /* POSIX MIN */
48 #endif
49 
50 #endif /* _AC_STDLIB_H */
51