> This patch makes version.h protected from multiple inclusions.
+ @echo '#ifndef _LINUX_VERSION_H' > .ver
+ @echo '#define _LINUX_VERSION_H' >> .ver
+ @echo '#define UTS_RELEASE "$(KERNELRELEASE)"' >> .ver
+ @echo '#define LINUX_VERSION_CODE '`expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver
@echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))' >>.ver
+ @echo '#endif /* _LINUX_VERSION_H */' >> .ver
You can save a line by changing the ifndef to use UTS_RELEASE..
-- "Love the dolphins," she advised him. "Write by W.A.S.T.E.."
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/