Skip to contentSkip to conversation

Stefan Schmidt : llvm2.7_2.7: Add patch for build errors on newer gcc / glibc combinations

oe-commits Henning Heinold 2 participants 2 messages May 16, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 10 lines · git version control

+Index: llvm-2.7/include/llvm/ADT/SmallVector.h

+===================================================================
+--- llvm-2.7.orig/include/llvm/ADT/SmallVector.h	2011-05-08 17:07:09.000000000 +0200

++++ llvm-2.7/include/llvm/ADT/SmallVector.h 2011-05-08 17:07:25.000000000 +0200
+@@ -19,6 +19,7 @@
+ #include <cassert>
+ #include <cstring>
+ #include <memory>
++#include <stddef.h>
+

Please use #include <cstddef> we are in c++ code here.

Bye Henning

#2 lore raw

Hello.

Quoted 12 lines · Henning Heinold
Quoted 10 lines · git version control

+Index: llvm-2.7/include/llvm/ADT/SmallVector.h

+===================================================================
+--- llvm-2.7.orig/include/llvm/ADT/SmallVector.h	2011-05-08 17:07:09.000000000 +0200

++++ llvm-2.7/include/llvm/ADT/SmallVector.h 2011-05-08 17:07:25.000000000 +0200
+@@ -19,6 +19,7 @@
+ #include <cassert>
+ #include <cstring>
+ #include <memory>
++#include <stddef.h>
+

Quoted 1 line

Please use #include <cstddef> we are in c++ code here.

Thats why I send the patch to ml before to gather some review. :)

Will update the patch and test with your suggestion.

regards
Stefan Schmidt