Skip to content

Instantly share code, notes, and snippets.

@Frago9876543210
Last active January 2, 2019 15:47
Show Gist options
  • Save Frago9876543210/b85c9ff8db019a40bf39ac275408c4ec to your computer and use it in GitHub Desktop.
Save Frago9876543210/b85c9ff8db019a40bf39ac275408c4ec to your computer and use it in GitHub Desktop.
diff --git a/hybris/src/hooks.c b/hybris/src/hooks.c
index cc65f8a..5b94236 100644
--- a/hybris/src/hooks.c
+++ b/hybris/src/hooks.c
@@ -38,6 +38,7 @@
#include <errno.h>
#include <dirent.h>
#include <sys/types.h>
+#include <sys/uio.h>
#include <stdarg.h>
#include <sys/ipc.h>
@@ -1540,7 +1541,6 @@ static struct _hook hooks[] = {
{"malloc", my_malloc },
{"free", free },
{"calloc", calloc },
- {"cfree", cfree },
{"realloc", realloc },
{"memalign", memalign },
{"valloc", valloc },
@@ -1786,7 +1786,7 @@ static struct _hook hooks[] = {
{"localtime_r", localtime_r},
{"gmtime", gmtime},
{"abort", abort},
- {"writev", writev},
+ {"writev", write},
/* unistd.h */
{"access", access},
{"read", my_read},
#!/bin/bash
git clone --recursive https://github.com/MCMrARM/mcpelauncher-linux.git
cd mcpelauncher-linux
git checkout 5008fb91035191b7849ded0f34d58db551b98cd5
git submodule init
git submodule update
wget -nc https://gist.githubusercontent.com/Frago9876543210/b85c9ff8db019a40bf39ac275408c4ec/raw/12cf65ad678e536159629a29d43def4f4ac39894/fix_build.patch
git apply fix_build.patch
mkdir -p build && cd build
cmake ..
make -j4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment