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 <[email protected]>
---
 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

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to