diff --git a/src/OSspecific/POSIX/dummyPrintStack.C b/src/OSspecific/POSIX/dummyPrintStack.C
index 948b6774e94163c7cb32056cdd80b2eb18a699e2..fbbf9d8278c6c14e9c51ce5ab494ae540df92128 100644
--- a/src/OSspecific/POSIX/dummyPrintStack.C
+++ b/src/OSspecific/POSIX/dummyPrintStack.C
@@ -29,7 +29,12 @@ License
 
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
 
+void Foam::error::safePrintStack(std::ostream& os)
+{}
+
+
 void Foam::error::printStack(Ostream& os)
 {}
 
+
 // ************************************************************************* //