summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix/search-paths.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/guix/search-paths.scm b/guix/search-paths.scm
index edd416ccdc..b2a0b838c0 100644
--- a/guix/search-paths.scm
+++ b/guix/search-paths.scm
@@ -100,7 +100,9 @@
(define $OBJCPLUS_INCLUDE_PATH
(search-path-specification
(variable "OBJCPLUS_INCLUDE_PATH")
- (files '("include"))))
+ ;; Add 'include/c++' here so that <cstdlib>'s "#include_next
+ ;; <stdlib.h>" finds GCC's <stdlib.h>, not libc's.
+ (files '("include/c++" "include"))))
(define $LIBRARY_PATH
(search-path-specification