Constipation is common after surgery. Eating foods that are high in fiber and drinking plenty of water can help prevent constipation. Stool softeners can also help prevent constipation.