17 lines
665 B
Diff
17 lines
665 B
Diff
diff -Npru libgadu-1.12.0.orig/protobufgen.sh libgadu-1.12.0/protobufgen.sh
|
|
--- libgadu-1.12.0.orig/protobufgen.sh 2014-06-13 18:41:37.000000000 +0000
|
|
+++ libgadu-1.12.0/protobufgen.sh 2014-07-16 20:06:14.570039033 +0000
|
|
@@ -6,12 +6,5 @@ if [ $? != 0 ] ; then
|
|
exit -1
|
|
fi
|
|
|
|
-sed -i 's/<google\/protobuf-c\/protobuf-c.h>/"protobuf.h"/g' packets.pb-c.h
|
|
-
|
|
-if ! cat packets.pb-c.c | grep "PROTOBUF_C_NO_DEPRECATED" > /dev/null; then
|
|
- echo "Warning: protobuf-c-compiler < 0.14 detected, trying to fix the output"
|
|
- sed -i 's| NULL,NULL /\* reserved1, reserved2 \*/| 0, 0, NULL, NULL|g' packets.pb-c.c
|
|
-fi
|
|
-
|
|
mv packets.pb-c.h include
|
|
mv packets.pb-c.c src
|