From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Sun, 30 Jun 2013 13:15:05 +0200 Subject: [U-Boot] [PATCH 2/3] tools/proftool: add missing definition In-Reply-To: <1372590906-75089-1-git-send-email-andreas.devel@googlemail.com> References: <1372590906-75089-1-git-send-email-andreas.devel@googlemail.com> Message-ID: <1372590906-75089-3-git-send-email-andreas.devel@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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