Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a workaround to build on Ubuntu-18.04 due to "gettid" #1605

Closed
mingodad opened this issue Dec 2, 2024 · 2 comments
Closed

Need a workaround to build on Ubuntu-18.04 due to "gettid" #1605

mingodad opened this issue Dec 2, 2024 · 2 comments

Comments

@mingodad
Copy link

mingodad commented Dec 2, 2024

To build on Ubuntu-18.04 I need to add this:

-------------------- bootstrap/stage0/runtime/AK/Format.cpp --------------------
index 43b125cb..58ac662a 100644
@@ -34,6 +34,11 @@
 #    include <AK/StringFloatingPointConversions.h>
 #endif
 
+#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30
+#include <sys/syscall.h>
+#define gettid() syscall(SYS_gettid)
+#endif
+
 namespace AK {
 
 namespace {
@alimpfard
Copy link
Member

Jakt's "copy" of AK is strictly downstream from Serenity's, please make an issue/PR there instead.

@mingodad
Copy link
Author

mingodad commented Dec 2, 2024

Thank you for reply !
Done here SerenityOS/serenity#25527

@mingodad mingodad closed this as completed Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants