[PATCH] making version.h reentrant

Brian Gerst (bgerst@quark.vpplus.com)
Sun, 28 Nov 1999 11:20:08 -0500


This is a multi-part message in MIME format.
--------------F52C5C6F549DFB0248F1FFCE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

This patch makes version.h protected from multiple inclusions.

-- 

Brian Gerst --------------F52C5C6F549DFB0248F1FFCE Content-Type: text/plain; charset=us-ascii; name="diff-makefile" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diff-makefile"

--- linux-2.3.30-pre3/Makefile Sun Nov 28 10:22:34 1999 +++ linux-2.3.30-pre3a/Makefile Sun Nov 28 10:52:15 1999 @@ -309,9 +309,12 @@ @mv -f .ver $@ include/linux/version.h: ./Makefile - @echo \#define UTS_RELEASE \"$(KERNELRELEASE)\" > .ver - @echo \#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver + @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 @mv -f .ver $@ init/version.o: init/version.c include/linux/compile.h include/config/MARKER

--------------F52C5C6F549DFB0248F1FFCE--

- 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/