it seems that Intel's Galileo dose not support avr related source code. Am I right ?
well, yes - it's x86 not avr I'd say.
? Is there any way to make it work ?
Any suggestions would be greatly appreciated.
Have a look what functions you actually require. You may start just commenting the '#include "avr/sleep.h"' and check the error messages. You might be able to easily replace by standard Linux sleep calls e.g.
Thank you for your suggestions. I will try to modify the libraries as you suggested, but I think there would be a lot of code needing to be modified.
maybe you could write a wrapper header "avr/sleep.h"?