From: Yu Watanabe Date: Fri, 28 Feb 2025 13:27:32 +0000 (+0900) Subject: missing_syscall: gettid is supported by glibc since 2.30 X-Git-Tag: v258-rc1~1195^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65e844bdb884521cbbf8336a027fff57c7f63edb;p=thirdparty%2Fsystemd.git missing_syscall: gettid is supported by glibc since 2.30 Now our baseline of glibc is 2.31, hence it is OK to drop our definition. --- diff --git a/meson.build b/meson.build index de89853134c..0b4e3bab3e7 100644 --- a/meson.build +++ b/meson.build @@ -603,8 +603,6 @@ foreach ident : ['secure_getenv', '__secure_getenv'] endforeach foreach ident : [ - ['gettid', '''#include - #include '''], ['fchmodat2', '''#include #include '''], # no known header declares fchmodat2 ['pivot_root', '''#include diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index 5369cc53585..757cfdea19f 100644 --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -68,21 +68,6 @@ static inline int missing_ioprio_set(int which, int who, int ioprio) { /* ======================================================================= */ -/* The syscall has been defined since forever, but the glibc wrapper was missing. */ -#if !HAVE_GETTID -static inline pid_t missing_gettid(void) { -# if defined __NR_gettid && __NR_gettid >= 0 - return (pid_t) syscall(__NR_gettid); -# else -# error "__NR_gettid not defined" -# endif -} - -# define gettid missing_gettid -#endif - -/* ======================================================================= */ - #if !HAVE_NAME_TO_HANDLE_AT struct file_handle { unsigned int handle_bytes;