Skip to content

Commit

Permalink
Update readme with srtp patching instructions
Browse files Browse the repository at this point in the history
This is needed to compile with OS X 10.8 support
  • Loading branch information
eofster committed Nov 16, 2013
1 parent 8579b22 commit e564f01
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,22 @@ Add `static` at the line 286 in `third_party/srtp/crypto/cipher/aes_icm.c`:
/* fill buffer with new keystream */
v128_copy(&c->keystream_buffer, &c->counter);

Add `static` at the line 127 in `third_party/srtp/crypto/math/datatypes.c`:

Index: third_party/srtp/crypto/math/datatypes.c
===================================================================
--- third_party/srtp/crypto/math/datatypes.c (revision 4641)
+++ third_party/srtp/crypto/math/datatypes.c (working copy)
@@ -124,7 +124,7 @@
return bit_string;
}

-inline int
+static inline int
hex_char_to_nibble(uint8_t c) {
switch(c) {
case ('0'): return 0x0;

Configure and build pjsip:

$ CFLAGS="-mmacosx-version-min=10.8" ./configure
Expand Down

0 comments on commit e564f01

Please sign in to comment.