[U-Boot] [PATCH 2/3] tools/proftool: add missing definition

Andreas Bießmann andreas.devel at googlemail.com
Sun Jun 30 13:15:05 CEST 2013


BSD (like OS X) variants of regex.h do not declare REG_NOERROR, add a simple
define for them.

Signed-off-by: Andreas Bießmann <andreas.devel at googlemail.com>
---
 tools/proftool.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/proftool.c b/tools/proftool.c
index a48ed28..d910b50 100644
--- a/tools/proftool.c
+++ b/tools/proftool.c
@@ -35,6 +35,11 @@
 
 #define MAX_LINE_LEN 500
 
+#ifndef REG_NOERROR
+/* BSD regex.h do not expose REG_NOERROR */
+# define REG_NOERROR 0
+#endif
+
 enum {
 	FUNCF_TRACE	= 1 << 0,	/* Include this function in trace */
 };
-- 
1.8.3.1



More information about the U-Boot mailing list