]> sigrok.org Git - libsigrokdecode.git/commitdiff
Add a missing #include.
authorUwe Hermann <redacted>
Tue, 19 Nov 2013 20:14:03 +0000 (21:14 +0100)
committerUwe Hermann <redacted>
Tue, 19 Nov 2013 20:14:03 +0000 (21:14 +0100)
This causes compiler errors in some setups otherwise, e.g.:

  CC       libsigrokdecode_la-session.lo
session.c: In function 'srd_session_metadata_set':
session.c:195:46: error: expected ')' before 'PRIu64'
  srd_dbg("Setting session %d samplerate to %"PRIu64".",
                                              ^
session.c: In function 'srd_session_send':
session.c:242:15: error: expected ')' before 'PRIu64'
    "number %" PRIu64 ", %" PRIu64 " bytes at 0x%p",
               ^

session.c

index 7eeab16b839a4b6ab3a275b5dc0fda5aa26915d4..84c38a6a05174cd559d35fe89cc41563d5b1a88e 100644 (file)
--- a/session.c
+++ b/session.c
@@ -21,6 +21,7 @@
 #include "libsigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
 #include "libsigrokdecode-internal.h"
 #include "config.h"
+#include <inttypes.h>
 #include <glib.h>
 
 /**