Update declaration of gettid to comply to glibc 2.30+

This commit is contained in:
Wilken Haase 2019-10-06 20:44:23 +02:00
parent 6eb0a7f35a
commit 059e5c80f5
2 changed files with 3 additions and 3 deletions

View File

@ -539,7 +539,7 @@ static int X11HaveDPMS(xcb_connection_t *);
static void X11DPMSReenable(xcb_connection_t *); static void X11DPMSReenable(xcb_connection_t *);
static void X11DPMSDisable(xcb_connection_t *); static void X11DPMSDisable(xcb_connection_t *);
#endif #endif
uint64_t gettid() uint64_t sys_gettid()
{ {
return pthread_self(); return pthread_self();
} }

View File

@ -254,9 +254,9 @@ extern int VideoRaiseWindow(void);
extern void ActivateOsd(GLuint,int,int,int,int); extern void ActivateOsd(GLuint,int,int,int,int);
#endif #endif
#if 0 #if 0
long int gettid() long int sys_gettid()
{ {
return (long int)syscall(224); return (long int)syscall(__NR_gettid);
} }
#endif #endif