[PATCH] Use local.h for local configuration
Shaun Jackman
sjackman at gmail.com
Mon Jul 10 10:48:12 PDT 2006
This patch adds an empty include file, local.h, to be included by
platform.h. When building outside of the source tree, the user can add
a $top_builddir/include/local.h file to include any system-specific
header files or definitions. This mechanism is terribly useful for
questionable but necessary definitions such as `#define fork()
vfork()'.
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 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
-------------- 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