Fix build with libstdc++
authorkwolekr <kwolekr@minetest.net>
Tue, 19 May 2015 06:38:48 +0000 (02:38 -0400)
committerkwolekr <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

index bdf9c4dfc7bd9b7b38d8e2ab160728e510401c4b..465bea44c530898f805d90a209cc00afe0d3b879 100644 (file)
@@ -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"