[Fedora-directory-commits] ldapserver/ldap/servers/plugins/dna dna.c, 1.12, 1.13

Nathan Kinder nkinder at fedoraproject.org
Fri Oct 17 22:12:49 UTC 2008


Author: nkinder

Update of /cvs/dirsec/ldapserver/ldap/servers/plugins/dna
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11144/ldap/servers/plugins/dna

Modified Files:
	dna.c 
Log Message:
Related: 207457
Summary: Add support for 64-bit counters (phase 1).



Index: dna.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/dna/dna.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- dna.c	15 Oct 2008 06:29:56 -0000	1.12
+++ dna.c	17 Oct 2008 22:12:47 -0000	1.13
@@ -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 */




More information about the Fedora-directory-commits mailing list