Skip to content

Instantly share code, notes, and snippets.

@shengwen-tw
Last active May 28, 2024 15:11
Show Gist options
  • Save shengwen-tw/e5dffd8aefd7d2019cfbb4b7f1048ef3 to your computer and use it in GitHub Desktop.
Save shengwen-tw/e5dffd8aefd7d2019cfbb4b7f1048ef3 to your computer and use it in GitHub Desktop.
DirectFB2 Cross Compilation Patch
diff --git a/lib/direct/os/linux/system.c b/lib/direct/os/linux/system.c
index fffc495b2..9d871da74 100644
--- a/lib/direct/os/linux/system.c
+++ b/lib/direct/os/linux/system.c
@@ -1,3 +1,6 @@
+#ifndef __NR_futex
+#define __NR_futex __NR_futex_time64
+#endif
/*
This file is part of DirectFB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment