aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-05-19 02:38:48 -0400
committerkwolekr <kwolekr@minetest.net>2015-05-19 02:38:48 -0400
commit43702ec6ac0fae7c8ef04be82bcca72ba9bec017 (patch)
tree0a71aa6991739c0114f156bdb82b48b0392931f5 /src
parent6c5a6967ecc162befc44f1adf15bcc9d11658ff7 (diff)
downloadminetest-43702ec6ac0fae7c8ef04be82bcca72ba9bec017.tar.gz
minetest-43702ec6ac0fae7c8ef04be82bcca72ba9bec017.tar.bz2
minetest-43702ec6ac0fae7c8ef04be82bcca72ba9bec017.zip
Fix build with libstdc++
libstdc++ doesn't include <cstring> inside of <string>, unlike libc++.
Diffstat (limited to 'src')
-rw-r--r--src/objdef.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/objdef.cpp b/src/objdef.cpp
index bdf9c4dfc..465bea44c 100644
--- 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"