ADMUX in Arduino Due

This code does not compile for the Due
http://provideyourown.com/2012/secret-arduino-voltmeter-measure-battery-voltage/
It relies on ADMUX.
Is there a simple fix?
Thanks

This code relies on the internal reference present on the AVR chips, which doesn't exist on the SAM3X8E, so I don't think you may get the code to work.

Thanks