Hi,
For signature calculation, poppler can use Mozilla's NSS3 library
optionally. I receive a compiler error against PRBool types, because
it is used by hasht.h before including its definition in prtypes.h.
Here is a trivial patch to include prtypes.h before hasht.h.
Regards,
mpsuzuki
diff --git a/poppler/SignatureInfo.cc b/poppler/SignatureInfo.cc
index 7ca8b96..254d42e 100644
--- a/poppler/SignatureInfo.cc
+++ b/poppler/SignatureInfo.cc
@@ -19,6 +19,7 @@
#include <string.h>
#ifdef ENABLE_NSS3
+ #include <prtypes.h>
#include <hasht.h>
#else
static const int HASH_AlgNULL = -1;
diff --git a/utils/pdfsig.cc b/utils/pdfsig.cc
index 7077ab7..cf3a153 100644
--- a/utils/pdfsig.cc
+++ b/utils/pdfsig.cc
@@ -20,6 +20,7 @@
#include <stddef.h>
#include <string.h>
#include <time.h>
+#include <prtypes.h>
#include <hasht.h>
#include "parseargs.h"
#include "Object.h"
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler