The crew uses the same lavs as the passengers. There is no provision to for crews to answer the call of nature on the flight deck. I guess we could always retrofit relief tubes into the cockpit (hey, it works for the military) but what would we do for female flight crew members?
Once again, modern science and the free enterprise system answer the call (of nature):