fatal error: avr\wdt.h: No such file or directory in arduino due
The Due is a very different board than the Uno. It uses a completely different architecture (ARM vs AVR). You can't use AVR-specific  code on an ARM chip, and the Watchdog code is AVR-specific.

You will have to find (or write) the equivalent ARM code using the Due's register set instead.