From 059e5c80f5159690a64d454424b9a5fc448e958a Mon Sep 17 00:00:00 2001 From: Wilken Haase Date: Sun, 6 Oct 2019 20:44:23 +0200 Subject: [PATCH] Update declaration of gettid to comply to glibc 2.30+ --- video.c | 2 +- video.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/video.c b/video.c index 080baac..afdb680 100644 --- a/video.c +++ b/video.c @@ -539,7 +539,7 @@ static int X11HaveDPMS(xcb_connection_t *); static void X11DPMSReenable(xcb_connection_t *); static void X11DPMSDisable(xcb_connection_t *); #endif -uint64_t gettid() +uint64_t sys_gettid() { return pthread_self(); } diff --git a/video.h b/video.h index f1f8b31..84c31b1 100644 --- a/video.h +++ b/video.h @@ -254,9 +254,9 @@ extern int VideoRaiseWindow(void); extern void ActivateOsd(GLuint,int,int,int,int); #endif #if 0 -long int gettid() +long int sys_gettid() { - return (long int)syscall(224); + return (long int)syscall(__NR_gettid); } #endif