The X-ray structure of the title compound has been determined for the first time. This features ribbons formed by two parallel chains of molecules joined by C=O···H–N hydrogen bonding, which are then cross-linked by C=O···H–O hydrogen bonds. The structure is compared to those of closely related compounds.