Fixed compile failed with enable-ringbuffer