From: Brian Behlendorf <behlendorf1@llnl.gov>
Subject: [PATCH] linux legacy
Do not use openat() and fdopendir() since they are not available
on older systems.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>