TRIPOLI (Reuters) - Libya’s internationally recognized government said on Thursday it has ratified a security and military cooperation deal it agreed with Turkey last month, opening the way for potential military help from Ankara as it fights a months-long offensive by rival forces.

The Government of National Accord (GNA) said in a statement that the memorandum of understanding has been ratified but did not give further details.

Turkish President Tayyip Erdogan said on Wednesday that Ankara would improve cooperation with Libya by offering military support to the GNA and backing joint steps they have taken in the Mediterranean.

It was not immediately clear what kind of military support Turkey might offer Libya or when.

The GNA, based in the capital Tripoli, has been fighting since April to push back an offensive by the eastern-based Libyan National Army forces led by Khalifa Haftar.