public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] tools/proftool: add missing definition
Date: Sun, 30 Jun 2013 13:15:05 +0200	[thread overview]
Message-ID: <1372590906-75089-3-git-send-email-andreas.devel@googlemail.com> (raw)
In-Reply-To: <1372590906-75089-1-git-send-email-andreas.devel@googlemail.com>

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@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

  parent reply	other threads:[~2013-06-30 11:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-30 11:15 [U-Boot] [PATCH 0/3] Adopt u-boot build to OS X Andreas Bießmann
2013-06-30 11:15 ` [U-Boot] [PATCH 1/3] lib/rsa/rsa-sig.c: compile on " Andreas Bießmann
2013-07-01 18:58   ` Lubomir Popov
2013-07-03 14:15   ` Simon Glass
2013-06-30 11:15 ` Andreas Bießmann [this message]
2013-07-01 18:45   ` [U-Boot] [PATCH 2/3] tools/proftool: add missing definition Jeroen Hofstee
2013-07-01 20:12     ` Jeroen Hofstee
2013-07-02  6:39       ` Andreas Bießmann
2013-07-01 18:59   ` Lubomir Popov
2013-06-30 11:15 ` [U-Boot] [PATCH 3/3] Makefile: fix readelf usage Andreas Bießmann
2013-07-01 19:00   ` Lubomir Popov
2013-07-04 12:09   ` Albert ARIBAUD
2013-07-04 13:25     ` Andreas Bießmann
2013-07-04 14:02       ` Albert ARIBAUD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1372590906-75089-3-git-send-email-andreas.devel@googlemail.com \
    --to=andreas.devel@googlemail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox