Pakistan has approved a legally binding safety code for construction workers, developed with help from the International Labour Organization.