it happens that net/core/sock.c won't compile on my alpha box if I do not add the following line in include/asm-alpha/socket.h :
#define SO_BINDTODEVICE 25
I suspect other archs may have the problem as well.
--Thomas Pornin