How do I amend the have_posts function to include custom posts?

How do I amend the have_posts function to include custom posts?