The reaction of indomethacin (I) with SOCl2 in hot benzene gives the corresponding acyl chloride (II), which is then condensed with 2,3-butanediol (III) by means of pyridine in THF.