mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Portability fix
This commit is contained in:
@ -20,7 +20,8 @@
|
|||||||
/* Seek to position in file */
|
/* Seek to position in file */
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
|
|
||||||
my_off_t my_seek(File fd, my_off_t pos, int whence, myf MyFlags)
|
my_off_t my_seek(File fd, my_off_t pos, int whence,
|
||||||
|
myf MyFlags __attribute__((unused)))
|
||||||
{
|
{
|
||||||
reg1 os_off_t newpos;
|
reg1 os_off_t newpos;
|
||||||
DBUG_ENTER("my_seek");
|
DBUG_ENTER("my_seek");
|
||||||
@ -40,7 +41,7 @@ my_off_t my_seek(File fd, my_off_t pos, int whence, myf MyFlags)
|
|||||||
/* Tell current position of file */
|
/* Tell current position of file */
|
||||||
/* ARGSUSED */
|
/* ARGSUSED */
|
||||||
|
|
||||||
my_off_t my_tell(File fd, myf MyFlags)
|
my_off_t my_tell(File fd, myf MyFlags __attribute__((unused)))
|
||||||
{
|
{
|
||||||
os_off_t pos;
|
os_off_t pos;
|
||||||
DBUG_ENTER("my_tell");
|
DBUG_ENTER("my_tell");
|
||||||
|
@ -218,7 +218,7 @@ void write_core(int sig)
|
|||||||
{
|
{
|
||||||
signal(sig, SIG_DFL);
|
signal(sig, SIG_DFL);
|
||||||
pthread_kill(pthread_self(), sig);
|
pthread_kill(pthread_self(), sig);
|
||||||
#if defined(P_PID) && defined(P_MYID)
|
#if defined(P_MYID)
|
||||||
/* On Solaris, the above kill is not enough */
|
/* On Solaris, the above kill is not enough */
|
||||||
sigsend(P_PID,P_MYID,sig);
|
sigsend(P_PID,P_MYID,sig);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user