Hi there
you do not need to do modification on the code. it works well with arduino mega.i tested it successfully. i assign the arduino uno as send and mega as receive. i can receive the info on meag correctly. the spi takes care by the arduino ide. thanks.