util.c: fix order of inclusion to correctly consume config.h
authorUri Simchoni <urisimchoni@gmail.com>
Thu, 2 Jul 2015 17:09:02 +0000 (20:09 +0300)
committerVolker Lendecke <vl@samba.org>
Thu, 9 Jul 2015 10:32:03 +0000 (12:32 +0200)
replace.h has to be the first file included in order to correctly act
upon the definitions in config.h.

Specifically, this change fixes 32-bit i686 builds, which depend upon
_FILE_OFFSET_BITS=64 to be set before any standard library file is
included.

Signed-off-by: Uri Simchoni <urisimchoni@gmail.com>
Reviewed-by: "Stefan (metze) Metzmacher" <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Jul  9 12:32:03 CEST 2015 on sn-devel-104

lib/util/util.c

index 4f0e67f2e7a1ddf60610013b2492e43a4439b011..393d83d1673dd0d9be52cf09f93eef5f3e8c6d65 100644 (file)
@@ -22,8 +22,8 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#include <talloc.h>
 #include "replace.h"
+#include <talloc.h>
 #include "system/network.h"
 #include "system/filesys.h"
 #include "system/locale.h"