diff options
| author | Nathan Kinder <nkinder@redhat.com> | 2008-10-17 22:12:48 +0000 |
|---|---|---|
| committer | Nathan Kinder <nkinder@redhat.com> | 2008-10-17 22:12:48 +0000 |
| commit | 567be2b6589e5fa3e11bb103f046bec55f37dd6b (patch) | |
| tree | 5c276c4fb82c4a010597898a4375556c92529249 /ldap/servers/plugins/replication/repl.h | |
| parent | 6b1364ff27b4a9499089f76938fcd82da9e70baf (diff) | |
Related: 207457
Summary: Add support for 64-bit counters (phase 1).
Diffstat (limited to 'ldap/servers/plugins/replication/repl.h')
| -rw-r--r-- | ldap/servers/plugins/replication/repl.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ldap/servers/plugins/replication/repl.h b/ldap/servers/plugins/replication/repl.h index 05ea0929..ca0fe05b 100644 --- a/ldap/servers/plugins/replication/repl.h +++ b/ldap/servers/plugins/replication/repl.h @@ -44,6 +44,22 @@ #ifndef _REPL_H_ #define _REPL_H_ +/* 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 */ + #include <limits.h> #include <time.h> #include <stdio.h> |
