This allows to merge the implementation for Linux and FreeBSD. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>