]> git.sur5r.net Git - openldap/blobdiff - include/ac/stdlib.h
Add reference to slappasswd(8)
[openldap] / include / ac / stdlib.h
index 505b30b5cf36bca486230f391c2ea40b102923ec..0537904dd6a8b156986e88c1f963df19f5b07288 100644 (file)
@@ -1,6 +1,7 @@
 /* Generic stdlib.h */
+/* $OpenLDAP$ */
 /*
- * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
+ * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms are permitted only
 #ifndef _AC_STDLIB_H
 #define _AC_STDLIB_H
 
-#      include <stdlib.h>
+#if defined( HAVE_CSRIMALLOC )
+#include <stdio.h>
+#define MALLOC_TRACE
+#include <libmalloc.h>
+#endif
 
-       /* Not sure if !STDC_HEADERS is needed */
-#      if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
-#              include <malloc.h>
-#      endif
+#include <stdlib.h>
 
-#      ifndef EXIT_SUCCESS
-#              define EXIT_SUCCESS 0
-#              define EXIT_FAILURE 1
-#      endif
+/* Ignore malloc.h if we have STDC_HEADERS */
+#if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
+#      include <malloc.h>
+#endif
+
+#ifndef EXIT_SUCCESS
+#      define EXIT_SUCCESS 0
+#      define EXIT_FAILURE 1
+#endif
 
 #endif /* _AC_STDLIB_H */