lib/util: include config.h before any glibc headers
commit689d4a5796f185cbec407fd2dc8204b12f76f753
authorUri Simchoni <urisimchoni@gmail.com>
Sun, 12 Jul 2015 06:30:36 +0000 (12 09:30 +0300)
committerJeremy Allison <jra@samba.org>
Thu, 16 Jul 2015 23:38:15 +0000 (17 01:38 +0200)
treea73d6a92920f8600f7e85dc0a7e1ea4c6a2703ea
parent5768ca652360e24262200a30a45e137d85cfa245
lib/util: include config.h before any glibc headers

config.h may have some flags which affect glibc behavior, e.g.
_FILE_OFFSET_BITS=64. To make sure these flags have the desired
effect, config.h must be included before any glibc header files.

This commit does not fix a specific known bug. It changes the code to
comply with coding conventions.

Signed-off-by: Uri Simchoni <urisimchoni@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: "Stefan Metzmacher" <metze@samba.org>
lib/util/debug.c
lib/util/idtree.c