James Buchanan’s father became a citizen by virtue of the Constitution. He arrived in 1783 and the Constitution was ratified in 1787. He became a citizen before James was born in 1791.
Sorry, but that was only if he became a citizen of Pennsylvania before ratification. He didn't.
Pardon the tense I used...it was clearer this way.