Patches for wrong order of header files in check_swap.c [sf#1653934] [#752]