From 6aa0ae50e286e99d2fd85d1f92302a318f066fa3 Mon Sep 17 00:00:00 2001 From: Uri Simchoni Date: Sun, 12 Jul 2015 09:38:01 +0300 Subject: [PATCH] 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 Reviewed-by: Jeremy Allison Reviewed-by: "Stefan Metzmacher" Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri Jul 17 04:41:14 CEST 2015 on sn-devel-104 --- source4/torture/local/fsrvp_state.c | 4 +--- source4/torture/local/verif_trailer.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/source4/torture/local/fsrvp_state.c b/source4/torture/local/fsrvp_state.c index f9c0f0fbd8e..3a08543b734 100644 --- a/source4/torture/local/fsrvp_state.c +++ b/source4/torture/local/fsrvp_state.c @@ -17,11 +17,9 @@ along with this program. If not, see . */ -#include -#include +#include "includes.h" #include -#include "includes.h" #include "librpc/gen_ndr/security.h" #include "lib/param/param.h" #include "lib/util/dlinklist.h" diff --git a/source4/torture/local/verif_trailer.c b/source4/torture/local/verif_trailer.c index eb95b21c8b3..efb2ac7b526 100644 --- a/source4/torture/local/verif_trailer.c +++ b/source4/torture/local/verif_trailer.c @@ -19,11 +19,9 @@ along with this program. If not, see . */ -#include -#include +#include "includes.h" #include -#include "includes.h" #include "librpc/gen_ndr/security.h" #include "lib/param/param.h" #include "lib/util/dlinklist.h" -- 2.11.4.GIT