[CRIU] [PATCH 1/4] protobuf: fixed compilation on ARM

Alexander Kartashov alekskartashov at parallels.com
Wed Feb 20 05:53:36 EST 2013


The constant 4294967295 isn't replaced with 0xFFFFFFFF
in a generated source.

Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 protobuf/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/protobuf/Makefile b/protobuf/Makefile
index b4e209a..cb71a62 100644
--- a/protobuf/Makefile
+++ b/protobuf/Makefile
@@ -78,7 +78,7 @@ $(obj)/%.pb-c.c $(obj)/%.pb-c.h: $(obj)/%.proto $(obj)/%.proto.c.d
 	$(E) "  PBCC    " $@
 	$(Q) protoc-c --proto_path=$(obj)/ --c_out=$(obj)/ $<
 ifeq ($(ARCH),arm)
-	$(Q) sed -i 's/4294967295/0xFFFFFFFF/g' $@ $(patsubst %c,%h,$@)
+	$(Q) sed -i -e 's/4294967295/0xFFFFFFFF/g' $@ $(patsubst %.h,%.c,$@)
 endif
 
 $(obj)/%.o: $(obj)/%.pb-c.c $(obj)/%.pb-c.h
-- 
1.7.10.4



More information about the CRIU mailing list