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)
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

index f9c0f0fbd8e3e471ca1200a5ee6dcc138ae86457..3a08543b734b97030af438301999844f0c76d967 100644 (file)
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#include <sys/types.h>
-#include <sys/stat.h>
+#include "includes.h"
 #include <unistd.h>
 
-#include "includes.h"
 #include "librpc/gen_ndr/security.h"
 #include "lib/param/param.h"
 #include "lib/util/dlinklist.h"
index eb95b21c8b3f75e992289872fab9c52d36b95749..efb2ac7b52604ba1e7a5497d4826a6963396c4a0 100644 (file)
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#include <sys/types.h>
-#include <sys/stat.h>
+#include "includes.h"
 #include <unistd.h>
 
-#include "includes.h"
 #include "librpc/gen_ndr/security.h"
 #include "lib/param/param.h"
 #include "lib/util/dlinklist.h"