"doesn't need " and "needn't"

He doesn't need a haircut.

He needn't wait for me.(third person single has no "s" add to,and no past mode.)needn't + infinitive do

He needn't have waited for me.(他本不必等我的。)