James Mattis, a retired Marine Corps general, will resign from a board position with General Dynamics and take other steps to avoid conflicts of interest should he gain congressional approval to serve as defense secretary under President-elect Donald Trump.