One of the source files included both nhop.h and shared.h, leading to this clashing. Tested with: mips-gcc cross toolchain