From 6afbeb4cf4797f8843acf2ee3572476cea67cc73 Mon Sep 17 00:00:00 2001 From: "monty@hundin.mysql.fi" <> Date: Thu, 11 Oct 2001 22:02:16 +0300 Subject: Cleanups --- libmysql/manager.c | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) (limited to 'libmysql/manager.c') diff --git a/libmysql/manager.c b/libmysql/manager.c index 07595ab8dee..2f34f49209c 100644 --- a/libmysql/manager.c +++ b/libmysql/manager.c @@ -16,31 +16,30 @@ MA 02111-1307, USA */ #include -#if defined(__WIN__) || defined(_WIN32) || defined(_WIN64) -#include -#include +#if defined(THREAD) +#include /* because of signal() */ #endif +#include "mysql.h" +#include "mysql_version.h" +#include "mysqld_error.h" #include #include #include #include -#include "mysql.h" -#include "mysql_version.h" -#include "mysqld_error.h" -#include "errmsg.h" +#include +#include #include #include #include -#include #include -#ifdef HAVE_PWD_H -#include +#if defined(OS2) +# include +#elif !defined( __WIN__) +#include +#ifdef HAVE_SYS_UN_H +# include #endif -#if !defined(MSDOS) && !defined(__WIN__) -#include -#include -#include #include #ifdef HAVE_SELECT_H # include @@ -48,18 +47,13 @@ #ifdef HAVE_SYS_SELECT_H #include #endif -#endif -#ifdef HAVE_SYS_UN_H -# include -#endif -#if defined(THREAD) && !defined(__WIN__) -#include /* because of signal() */ -#endif +#include +#endif /* __WIN__ */ + #ifndef INADDR_NONE #define INADDR_NONE -1 #endif - #define RES_BUF_SHIFT 5 #define SOCKET_ERROR -1 #define NET_BUF_SIZE 2048 -- cgit v1.2.1