The null device is already defined in port.h, as DEVNULL. No need to redefine it as NULL_DEVICE.
Alternatively paths.h defines _PATH_DEVNULL.
Regards,
--
Andreas 'ads' Scherbaum German PostgreSQL User Group European PostgreSQL User Group - Board of Directors Volunteer Regional Contact, Germany - PostgreSQL Project