diff --git a/runtime.cc b/runtime.cc
index 0130f1cf41ca47ec0683226093420e81afda7b16..8034733ac4df15f6efb1b1cea6c0650caf396b76 100644
--- a/runtime.cc
+++ b/runtime.cc
@@ -84,7 +84,7 @@ extern "C" {
 		       __locale_t __l) __THROW __nonnull ((2, 4));
     size_t __wcsxfrm_l(wchar_t *__s1, __const wchar_t *__s2,
 			 size_t __n, __locale_t __loc) __THROW;
-
+    int mallopt(int param, int value);
 }
 
 void *__dso_handle;
@@ -620,6 +620,12 @@ size_t confstr(int name, char* buf, size_t len)
     abort();
 }
 
+int mallopt(int param, int value)
+{
+    debug(fmt("mallopt: unimplemented paramater  %1%") % param);
+    return 0;
+}
+
 long timezone;
 
 char* __environ_array[1];