mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
26 lines
675 B
Diff
26 lines
675 B
Diff
--- a/net/third_party/nss/ssl/bodge/secitem_array.c
|
|
+++ b/net/third_party/nss/ssl/bodge/secitem_array.c
|
|
@@ -6,6 +6,7 @@
|
|
* Support routines for SECItemArray data structure.
|
|
*/
|
|
|
|
+#include "nssutil.h"
|
|
#include "seccomon.h"
|
|
#include "secitem.h"
|
|
#include "secerr.h"
|
|
@@ -13,10 +14,15 @@
|
|
|
|
+#define NSSUTIL_VERSION_NUM \
|
|
+ (NSSUTIL_VMAJOR * 10000 + NSSUTIL_VMINOR * 100 + NSSUTIL_VPATCH)
|
|
+#if NSSUTIL_VERSION_NUM < 31500
|
|
+// Added in NSS 3.15.
|
|
typedef struct SECItemArrayStr SECItemArray;
|
|
|
|
struct SECItemArrayStr {
|
|
SECItem *items;
|
|
unsigned int len;
|
|
};
|
|
+#endif
|
|
|
|
SECItemArray *
|
|
SECITEM_AllocArray(PLArenaPool *arena, SECItemArray *array, unsigned int len)
|