I've never patched anything in Linux, and I can't exactly figure out what the guy who wrote this post (second paragraph) means. That target source is
qemu from github and the changes to apply are:
diff --git a/linux-user/flatload.c b/linux-user/flatload.c index 58f679e..c13a201 100644 --- a/linux-user/flatload.c +++ b/linux-user/flatload.c @@ -44,7 +44,7 @@ #define ntohl(x) be32_to_cpu(x) #include -//#define DEBUG +#define DEBUG #ifdef DEBUG #define DBG_FLT(...) printf(__VA_ARGS__)
This looks like a long
diff command to me but attempting to execute it fails. After some searching, I though I had to save that as ie
qemu.patch and run it with
patch, but after trying a few combinations that failed as well.
In this context, what am I supposed to do with the above snippet?