mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
0e293f75f1
This allows us to supply gcc-9 as an optional argument to cross-gcc, successfully constructing gcc-9-based cross-compilers. * gnu/packages/gcc.scm (gcc-9)[source](patches): Add "gcc-9-asan-fix-limits-include.patch". * gnu/packages/patches/gcc-9-asan-fix-limits-include.patch: New file. * gnu/local.mk (dist_patch_DATA): Add the patch. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
13 lines
386 B
Diff
13 lines
386 B
Diff
diff --git a/libsanitizer/asan/asan_linux.cc b/libsanitizer/asan/asan_linux.cc
|
|
index d92d0596b7c..7926536a0c3 100644
|
|
--- a/libsanitizer/asan/asan_linux.cc
|
|
+++ b/libsanitizer/asan/asan_linux.cc
|
|
@@ -30,7 +30,7 @@
|
|
#include <sys/types.h>
|
|
#include <dlfcn.h>
|
|
#include <fcntl.h>
|
|
-#include <limits.h>
|
|
+#include <linux/limits.h>
|
|
#include <pthread.h>
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|