Hydrogen bonding in fluids: an equation-of-state approach