dovecot-2.2: lib: Include stdlib.h in lib.h.

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 23 12:01:21 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/55e6910aed18
changeset: 19190:55e6910aed18
user:      Teemu Huovila <teemu.huovila at dovecot.fi>
date:      Wed Sep 23 14:52:44 2015 +0300
description:
lib: Include stdlib.h in lib.h.
It's already included in so many files that we might as well include it in
lib.h for everything. This is especially needed to be able to use sort.h,
which currently is included in lib.h anyway.

diffstat:

 src/lib/lib.h |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 1afdeb1cae62 -r 55e6910aed18 src/lib/lib.h
--- a/src/lib/lib.h	Tue Sep 22 22:33:41 2015 -0600
+++ b/src/lib/lib.h	Wed Sep 23 14:52:44 2015 +0300
@@ -8,6 +8,7 @@
 
 /* default system includes - keep these at minimum.. */
 #include <stddef.h> /* Solaris defines NULL wrong unless this is used */
+#include <stdlib.h>
 #include <string.h> /* strcmp() etc. */
 #ifdef HAVE_STRINGS_H
 #  include <strings.h> /* strcasecmp() etc. */


More information about the dovecot-cvs mailing list