Investors & landlords

If the only capital gain I have is a long-term gain from a mutual fund distribution reported on a 1099-div line 2a, how do I ensure it is taxed at the long term capital gain rate and not as ordinary income.  If it is my ONLY capital gain, how do I ensure schedule D is generated?