[coreboot] New patch to review for coreboot: 51e741c cbfstool: "index" is not supported in mingw.

Zheng Bao (zheng.bao@amd.com) gerrit at coreboot.org
Sun Jan 6 08:57:37 CET 2013


Zheng Bao (zheng.bao at amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2112

-gerrit

commit 51e741c5ae616a16f45b53c580bea8f9168cacdb
Author: zbao <fishbaozi at gmail.com>
Date:   Sun Jan 6 15:59:06 2013 +0800

    cbfstool: "index" is not supported in mingw.
    
    Use strchr instead.
    
    Change-Id: I3899b9ca9196dbbf2d147a38dacd7e742a3873fe
    Signed-off-by: Zheng Bao <zheng.bao at amd.com>
    Signed-off-by: zbao <fishbaozi at gmail.com>
---
 util/cbfstool/cbfstool.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c
index 6b52062..d5a751f 100644
--- a/util/cbfstool/cbfstool.c
+++ b/util/cbfstool/cbfstool.c
@@ -28,6 +28,10 @@
 #include "common.h"
 #include "cbfs.h"
 
+#ifdef __MINGW32__
+#define index strchr
+#endif
+
 struct command {
 	const char *name;
 	const char *optstring;



More information about the coreboot mailing list