1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Portability fix for HPUX10.20

This commit is contained in:
monty@narttu.mysql.fi
2003-02-25 21:43:24 +02:00
parent 541ba610b1
commit b4fbb06ad8
4 changed files with 22 additions and 9 deletions

View File

@ -264,6 +264,9 @@ bool opt_large_files= sizeof(my_off_t) > 4;
#define GET_HA_ROWS GET_ULONG
#endif
#ifdef HAVE_LIBWRAP
char *libwrapName= NULL;
#endif
/*
Variables to store startup options
@ -1855,14 +1858,13 @@ struct utsname
char nodename[FN_REFLEN];
};
int uname(struct utsname *a)
{
return -1;
}
#endif
#ifdef __WIN__
extern "C" pthread_handler_decl(handle_shutdown,arg)
{
MSG msg;
@ -1878,7 +1880,7 @@ extern "C" pthread_handler_decl(handle_shutdown,arg)
return 0;
}
int __stdcall handle_kill(ulong ctrl_type)
int STDCALL handle_kill(ulong ctrl_type)
{
if (ctrl_type == CTRL_CLOSE_EVENT ||
ctrl_type == CTRL_SHUTDOWN_EVENT)
@ -1919,10 +1921,6 @@ extern "C" pthread_handler_decl(handle_shutdown,arg)
const char *load_default_groups[]= { "mysqld","server",0 };
#ifdef HAVE_LIBWRAP
char *libwrapName=NULL;
#endif
bool open_log(MYSQL_LOG *log, const char *hostname,
const char *opt_name, const char *extension,
const char *index_file_name,