--- linux-2.6.39/include/linux/if_vlan.h
+++ linux-2.6.39/include/linux/if_vlan.h
@@ -364,6 +364,8 @@
 
 	return protocol;
 }
+#else
+#include <stdint.h>
 #endif /* __KERNEL__ */
 
 /* VLAN IOCTLs are found in sockios.h */
