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