Cleanup gateway.c include files
- First <maxscale/cdefs.h> - Then all system, c-runtime, OS include files in alphabetical order. - Then include files for "3rd-party" software in a loose order of importance. - Then maxscale headers ordered alphabetically.
This commit is contained in:
@ -36,57 +36,43 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <maxscale/cdefs.h>
|
#include <maxscale/cdefs.h>
|
||||||
#include <my_config.h>
|
#include <execinfo.h>
|
||||||
|
|
||||||
#include <openssl/opensslconf.h>
|
|
||||||
#if defined(OPENSSL_THREADS)
|
|
||||||
#define HAVE_OPENSSL_THREADS 1
|
|
||||||
#else
|
|
||||||
#define HAVE_OPENSSL_THREADS 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ftw.h>
|
#include <ftw.h>
|
||||||
#include <string.h>
|
|
||||||
#include <strings.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <time.h>
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <maxscale/service.h>
|
|
||||||
#include <maxscale/server.h>
|
|
||||||
#include <maxscale/dcb.h>
|
|
||||||
#include <maxscale/session.h>
|
|
||||||
#include <maxscale/modules.h>
|
|
||||||
#include <maxscale/config.h>
|
|
||||||
#include <maxscale/poll.h>
|
|
||||||
#include <maxscale/housekeeper.h>
|
|
||||||
#include <maxscale/service.h>
|
|
||||||
#include <maxscale/thread.h>
|
|
||||||
#include <maxscale/memlog.h>
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <string.h>
|
||||||
#include <mysql.h>
|
#include <strings.h>
|
||||||
#include <maxscale/monitor.h>
|
#include <sys/file.h>
|
||||||
#include <maxscale/version.h>
|
#include <sys/prctl.h>
|
||||||
#include <maxscale/maxscale.h>
|
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <maxscale/utils.h>
|
|
||||||
#include <maxscale/log_manager.h>
|
|
||||||
#include <maxscale/query_classifier.h>
|
|
||||||
|
|
||||||
#include <execinfo.h>
|
|
||||||
|
|
||||||
#include <ini.h>
|
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/prctl.h>
|
#include <time.h>
|
||||||
#include <sys/file.h>
|
#include <unistd.h>
|
||||||
#include <maxscale/statistics.h>
|
#include <openssl/opensslconf.h>
|
||||||
|
#include <mysql.h>
|
||||||
|
#include <ini.h>
|
||||||
#include <maxscale/alloc.h>
|
#include <maxscale/alloc.h>
|
||||||
|
#include <maxscale/config.h>
|
||||||
|
#include <maxscale/dcb.h>
|
||||||
#include <maxscale/gwdirs.h>
|
#include <maxscale/gwdirs.h>
|
||||||
|
#include <maxscale/housekeeper.h>
|
||||||
|
#include <maxscale/log_manager.h>
|
||||||
|
#include <maxscale/maxscale.h>
|
||||||
|
#include <maxscale/memlog.h>
|
||||||
|
#include <maxscale/modules.h>
|
||||||
|
#include <maxscale/monitor.h>
|
||||||
|
#include <maxscale/poll.h>
|
||||||
|
#include <maxscale/query_classifier.h>
|
||||||
|
#include <maxscale/server.h>
|
||||||
|
#include <maxscale/service.h>
|
||||||
|
#include <maxscale/service.h>
|
||||||
|
#include <maxscale/session.h>
|
||||||
|
#include <maxscale/statistics.h>
|
||||||
|
#include <maxscale/thread.h>
|
||||||
|
#include <maxscale/utils.h>
|
||||||
|
#include <maxscale/version.h>
|
||||||
|
|
||||||
#define STRING_BUFFER_SIZE 1024
|
#define STRING_BUFFER_SIZE 1024
|
||||||
#define PIDFD_CLOSED -1
|
#define PIDFD_CLOSED -1
|
||||||
@ -96,6 +82,12 @@
|
|||||||
# define _GNU_SOURCE
|
# define _GNU_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(OPENSSL_THREADS)
|
||||||
|
#define HAVE_OPENSSL_THREADS 1
|
||||||
|
#else
|
||||||
|
#define HAVE_OPENSSL_THREADS 0
|
||||||
|
#endif
|
||||||
|
|
||||||
extern char *program_invocation_name;
|
extern char *program_invocation_name;
|
||||||
extern char *program_invocation_short_name;
|
extern char *program_invocation_short_name;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user