summaryrefslogtreecommitdiffstats
path: root/src/plugins/kdb/db2
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2014-07-05 11:50:58 -0400
committerGreg Hudson <ghudson@mit.edu>2014-07-08 19:19:24 -0400
commit02a1123cf44381690c28f18ab2c4ba8036200539 (patch)
tree821ad7e29d2f90227b6f12dc63aaae948baa2447 /src/plugins/kdb/db2
parent6a8da91b691b8f51ac62d8142cd2fa32a69f3d15 (diff)
downloadkrb5-02a1123cf44381690c28f18ab2c4ba8036200539.tar.gz
krb5-02a1123cf44381690c28f18ab2c4ba8036200539.tar.xz
krb5-02a1123cf44381690c28f18ab2c4ba8036200539.zip
Include autoconf.h before system headers
Include autoconf.h (either directly or via proxy) before system headers, so that feature test macros defined there can affect the system namespace. Where include order was changed, eliminate some redundant or unnecessary includes. ticket: 7961
Diffstat (limited to 'src/plugins/kdb/db2')
-rw-r--r--src/plugins/kdb/db2/adb_openclose.c2
-rw-r--r--src/plugins/kdb/db2/libdb2/btree/bt_open.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/kdb/db2/adb_openclose.c b/src/plugins/kdb/db2/adb_openclose.c
index 447a395f8..9bad90505 100644
--- a/src/plugins/kdb/db2/adb_openclose.c
+++ b/src/plugins/kdb/db2/adb_openclose.c
@@ -5,10 +5,10 @@
* $Header$
*/
+#include <k5-int.h>
#include <sys/file.h>
#include <fcntl.h>
#include <unistd.h>
-#include <k5-int.h>
#include "policy_db.h"
#include <stdlib.h>
#include <db.h>
diff --git a/src/plugins/kdb/db2/libdb2/btree/bt_open.c b/src/plugins/kdb/db2/libdb2/btree/bt_open.c
index 069b2dfde..2977b17f3 100644
--- a/src/plugins/kdb/db2/libdb2/btree/bt_open.c
+++ b/src/plugins/kdb/db2/libdb2/btree/bt_open.c
@@ -46,6 +46,8 @@ static char sccsid[] = "@(#)bt_open.c 8.11 (Berkeley) 11/2/95";
* is wholly independent of the Postgres code.
*/
+#include "k5-platform.h"
+
#include <sys/param.h>
#include <sys/stat.h>
@@ -58,8 +60,6 @@ static char sccsid[] = "@(#)bt_open.c 8.11 (Berkeley) 11/2/95";
#include <string.h>
#include <unistd.h>
-#include "k5-platform.h" /* mkstemp? */
-
#include "db-int.h"
#include "btree.h"