[PATCH] Use local.h for local configuration

Shaun Jackman sjackman at gmail.com
Mon Jul 10 13:36:10 PDT 2006


On 7/10/06, Shaun Jackman <sjackman at gmail.com> wrote:
> This patch adds an empty include file, local.h, to be included by
> platform.h. When building outside of the source tree, the user ...

A small bug existed in my previous patch. The #include "local.h"
directive should have been #include <local.h> to force searching the
build tree for _build/include/local.h before searching the source
tree. An updated patch follows.

Cheers,
Shaun

2006-07-10  Shaun Jackman  <sjackman at gmail.com>

	* include/platform.h: Include local.h.
	* include/local.h: New file.

--- include/platform.h	72d6a6d6f899f71f0335ce09088b3e9535f7a964
+++ include/platform.h	0964d97f2c73061941f9db3d768505b7c82d2126
@@ -230,4 +230,7 @@
  #endif
  #endif

+/* Include any user-supplied configuration. */
+#include <local.h>
+
  #endif	/* platform.h	*/
--- include/local.h	e868d2b601e285556b0fb9d4c888c5a647c9f166
+++ include/local.h	e868d2b601e285556b0fb9d4c888c5a647c9f166
@@ -0,0 +1,8 @@
+#ifndef LOCAL_H
+#define LOCAL_H
+
+/* Any local configuration may be put here. If building outside of
+ * the source tree, the file $top_builddir/include/local.h may be
+ * used instead if preferred. */
+
+#endif
-------------- next part --------------
2006-07-10  Shaun Jackman  <sjackman at gmail.com>

	* include/platform.h: Include local.h.
	* include/local.h: New file.

--- include/platform.h	72d6a6d6f899f71f0335ce09088b3e9535f7a964
+++ include/platform.h	0964d97f2c73061941f9db3d768505b7c82d2126
@@ -230,4 +230,7 @@
 #endif
 #endif
 
+/* Include any user-supplied configuartion. */
+#include <local.h>
+
 #endif	/* platform.h	*/
# 
# old_revision [8b518c57c2a1662f8e6c57bc2386b1ed8cfae39e]
# 
# add_file "include/local.h"
#  content [e868d2b601e285556b0fb9d4c888c5a647c9f166]
# 
============================================================
--- include/local.h	e868d2b601e285556b0fb9d4c888c5a647c9f166
+++ include/local.h	e868d2b601e285556b0fb9d4c888c5a647c9f166
@@ -0,0 +1,8 @@
+#ifndef LOCAL_H
+#define LOCAL_H
+
+/* Any local configuration may be put here. If building outside of
+ * the source tree, the file $top_builddir/include/local.h may be
+ * used instead if preferred. */
+
+#endif


More information about the busybox mailing list