projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c5a696
)
Fix build with libstdc++
author
kwolekr
<kwolekr@minetest.net>
Tue, 19 May 2015 06:38:48 +0000
(
02:38
-0400)
committer
kwolekr
<kwolekr@minetest.net>
Tue, 19 May 2015 06:38:48 +0000
(
02:38
-0400)
libstdc++ doesn't include <cstring> inside of <string>, unlike libc++.
src/objdef.cpp
patch
|
blob
|
history
diff --git
a/src/objdef.cpp
b/src/objdef.cpp
index bdf9c4dfc7bd9b7b38d8e2ab160728e510401c4b..465bea44c530898f805d90a209cc00afe0d3b879 100644
(file)
--- a/
src/objdef.cpp
+++ b/
src/objdef.cpp
@@
-17,9
+17,11
@@
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include <strings.h>
#include "objdef.h"
#include "util/numeric.h"
#include "debug.h"
+#include "porting.h"
#include "log.h"
#include "gamedef.h"