ports/lang/hiphop-php/files/patch-hphp-util-compatibility.cpp
Martin Matuska cd17c8f3a3 Unbreak lang/hiphop-php and update to 2.1
Some functionality issues still need fixing (sqlite3)
2013-07-21 22:06:56 +00:00

11 lines
435 B
C++

--- hphp/util/compatibility.cpp.orig 2013-07-21 12:48:24.829495815 +0200
+++ hphp/util/compatibility.cpp 2013-07-21 12:48:45.364579480 +0200
@@ -20,7 +20,7 @@
namespace HPHP {
///////////////////////////////////////////////////////////////////////////////
-#if defined(__APPLE__)
+#if defined(__APPLE__) || defined(__FreeBSD__)
char *strndup(const char* str, size_t len) {
size_t str_len = strlen(str);
if (len < str_len) {