torture: include config.h before any glibc headers
authorUri Simchoni <urisimchoni@gmail.com>
Sun, 12 Jul 2015 06:38:01 +0000 (09:38 +0300)
committerJeremy Allison <jra@samba.org>
Fri, 17 Jul 2015 02:41:13 +0000 (04:41 +0200)
commit6aa0ae50e286e99d2fd85d1f92302a318f066fa3
treed458991776a678e68b1d76e7ab01cb9e6578765c
parent42468bcb4018b36914b849991f46913bcfb063dd
torture: 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.

Also remove inclusion of some system files, relying on
replace/system/*.h instead.

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>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jul 17 04:41:14 CEST 2015 on sn-devel-104
source4/torture/local/fsrvp_state.c
source4/torture/local/verif_trailer.c