Add platform dependency on buffer.