diff options
Diffstat (limited to 'ldap/servers/plugins/dna/dna.c')
-rw-r--r-- | ldap/servers/plugins/dna/dna.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ldap/servers/plugins/dna/dna.c b/ldap/servers/plugins/dna/dna.c index e96d090e..264d73a3 100644 --- a/ldap/servers/plugins/dna/dna.c +++ b/ldap/servers/plugins/dna/dna.c @@ -58,6 +58,15 @@ /* Required to get portable printf/scanf format macros */ #ifdef HAVE_INTTYPES_H #include <inttypes.h> + +/* NSPR uses the print macros a bit differently than ANSI C. We + * need to use ll for a 64-bit integer, even when a long is 64-bit. + */ +#undef PRIu64 +#define PRIu64 "llu" +#undef PRI64 +#define PRI64 "ll" + #else #error Need to define portable format macros such as PRIu64 #endif /* HAVE_INTTYPES_H */ |