diff options
author | Greg Hudson <ghudson@mit.edu> | 2014-07-05 11:50:58 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2014-07-08 19:19:24 -0400 |
commit | 02a1123cf44381690c28f18ab2c4ba8036200539 (patch) | |
tree | 821ad7e29d2f90227b6f12dc63aaae948baa2447 /src/util/et | |
parent | 6a8da91b691b8f51ac62d8142cd2fa32a69f3d15 (diff) | |
download | krb5-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/util/et')
-rw-r--r-- | src/util/et/error_message.c | 8 | ||||
-rw-r--r-- | src/util/et/test_et.c | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/util/et/error_message.c b/src/util/et/error_message.c index c4fa5693b..d7069a9df 100644 --- a/src/util/et/error_message.c +++ b/src/util/et/error_message.c @@ -20,15 +20,9 @@ * provided "as is" without express or implied warranty. */ -#include "autoconf.h" -#include <stdio.h> -#ifdef HAVE_STDLIB_H -#include <stdlib.h> -#endif -#include <string.h> +#include "k5-platform.h" #include "com_err.h" #include "error_table.h" -#include "k5-platform.h" static struct et_list *et_list; static k5_mutex_t et_list_lock = K5_MUTEX_PARTIAL_INITIALIZER; diff --git a/src/util/et/test_et.c b/src/util/et/test_et.c index ab2b2e50e..9faf10f46 100644 --- a/src/util/et/test_et.c +++ b/src/util/et/test_et.c @@ -1,10 +1,10 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +#include "autoconf.h" #include <stdio.h> #include <errno.h> #include "com_err.h" #include "test1.h" #include "test2.h" -#include "autoconf.h" #ifdef _WIN32 # define EXPORT_LIST |