DO NOT, repeat DO NOT ever give him ibuprofen, though.
Ibuprofen and tylenol are quite toxic to
dogs and cats
and can kill them quickly. Regular aspirin, however, CAN be given to a dog, so you could even ask the vet if you could give him some of that. There is a human product called Ascriptin that is aspirin with a coating of Maalox, which is very easy on the stomach that might help him. Your vet can advise you of the correct dosage for his weight and condition.