Skip to content

Instantly share code, notes, and snippets.

@bmah888
bmah888 / cjson.patch
Created May 11, 2017 17:40
Patch for cJSON to embed it in iperf3 (compatibility and 64-bit fixes)
diff --git a/src/cjson.c b/src/cjson.c
index c50c8ec..a31874d 100644
--- a/src/cjson.c
+++ b/src/cjson.c
@@ -34,13 +34,17 @@
#include <float.h>
#include <limits.h>
#include <ctype.h>
+#ifdef HAVE_STDINT_H
+#include <stdint.h>

Keybase proof

I hereby claim:

  • I am bmah888 on github.
  • I am bmah (https://keybase.io/bmah) on keybase.
  • I have a public key whose fingerprint is F85A 3820 4369 F71A 34D4 4E83 4984 910A 8CAA EE8A

To claim this, I am signing this object: