generic macros - freebsd

Signed-off-by: nixnodes <code@eth.si>