An error accurred when build the program with Arduino DUE R3!

The program runs normal with Mega2560, but when I build it with Arduino DUE , errors accurred as follows:

The error content as follows:
In file included from ConfigurationStore.cpp:1:0:
Marlin.h:15:24: fatal error: util/delay.h: No such file or directory
#include <util/delay.h>

Have you meet this problem? How can I resolve it! Please tell me the way.

Thank you so much!

the file is an AVR only file, and not part of the Arduino core so not portable.

http://www.nongnu.org/avr-libc/user-manual/group__util__delay.html

Wrap it in a check:

#ifdef __AVR__
  #include <util/delay.h>
#endif

You may also have to define _delay_ms and _delay_us as the Due versions if they aren't named the same.