Created
November 16, 2010 14:43
-
-
Save rednaxelafx/701887 to your computer and use it in GitHub Desktop.
Fix MRP build problem on Ubuntu 10.10 x64, GCC 4.4.4-14ubuntu5. Defining __USE_GNU directly in source code apparently didn't work in this configuration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tools/bootloader/sysSignal_Intel.c b/tools/bootloader/sysSignal_Intel.c | |
index c283e96..d7d04fa 100755 | |
--- a/tools/bootloader/sysSignal_Intel.c | |
+++ b/tools/bootloader/sysSignal_Intel.c | |
@@ -14,6 +14,14 @@ | |
*/ | |
/* | |
+ * Define the _GNU_SOURCE macro before first include header, | |
+ * instead of defining glibc's internal macro __USE_GNU. | |
+ */ | |
+#ifdef RVM_FOR_LINUX | |
+#define _GNU_SOURCE 1 | |
+#endif | |
+ | |
+/* | |
* Architecture specific signal handling routines | |
*/ | |
#include "sys.h" | |
@@ -21,7 +29,6 @@ | |
/* Macros to modify signal context */ | |
#ifdef RVM_FOR_LINUX | |
-#define __USE_GNU 1 | |
#include <sys/ucontext.h> | |
#define __MC(context) ((ucontext_t*)context)->uc_mcontext | |
#define __GREGS(context) (__MC(context).gregs) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment