diff --git a/compat.h b/compat.h index 1da332e..c0f4716 100644 --- a/compat.h +++ b/compat.h @@ -30,11 +30,13 @@ #include /* Define gettid for older glibc versions (below 2.30) */ -#if defined(__GLIBC__) && !__GLIBC_PREREQ(2, 30) +#if defined(__GLIBC__) +#if !__GLIBC_PREREQ(2, 30) static inline pid_t gettid(void) { return (pid_t)syscall(SYS_gettid); } -#endif +#endif /* !__GLIBC_PREREQ(2, 30) */ +#endif /* defined(__GLIBC__) */ #endif // COMPAT_H