]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Include stdlib.h in lib.h.
authorTeemu Huovila <teemu.huovila@dovecot.fi>
Wed, 23 Sep 2015 11:52:44 +0000 (14:52 +0300)
committerTeemu Huovila <teemu.huovila@dovecot.fi>
Wed, 23 Sep 2015 11:52:44 +0000 (14:52 +0300)
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.

src/lib/lib.h

index bec259d5c22c159aaeb629b13588ee0644ca8395..1501db6f11b6ad35294af8eb1818889b2670cb6f 100644 (file)
@@ -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. */