From 93e59a7b8ed3f61380c343e4c530c8b09f3af140 Mon Sep 17 00:00:00 2001 From: "wtchang%redhat.com" Date: Mon, 14 Mar 2005 18:02:00 +0000 Subject: [PATCH] Bugzilla Bug 284386: fixed build error using gcc4. gcc4 disallows arrays of incomplete element type (which are invalid in C). We moved the declaration of nss_builtin_oids to pki1.h, after the definition of NSSOID. r=caillon. Modified Files: oiddata.h oidgen.perl pki1.h --- security/nss/lib/pki1/oiddata.h | 8 +------- security/nss/lib/pki1/oidgen.perl | 8 +------- security/nss/lib/pki1/pki1.h | 6 ++++-- 3 files changed, 6 insertions(+), 16 deletions(-) diff --git a/security/nss/lib/pki1/oiddata.h b/security/nss/lib/pki1/oiddata.h index 2b78fb7e4b1..e673e94d437 100644 --- a/security/nss/lib/pki1/oiddata.h +++ b/security/nss/lib/pki1/oiddata.h @@ -39,19 +39,13 @@ #define OIDDATA_H #ifdef DEBUG -static const char OIDDATA_CVS_ID[] = "@(#) $RCSfile: oiddata.h,v $ $Revision: 1.3 $ $Date: 2005-02-02 22:28:24 $ ; @(#) $RCSfile: oiddata.h,v $ $Revision: 1.3 $ $Date: 2005-02-02 22:28:24 $"; +static const char OIDDATA_CVS_ID[] = "@(#) $RCSfile: oiddata.h,v $ $Revision: 1.4 $ $Date: 2005-03-14 18:02:00 $ ; @(#) $RCSfile: oiddata.h,v $ $Revision: 1.4 $ $Date: 2005-03-14 18:02:00 $"; #endif /* DEBUG */ #ifndef NSSPKI1T_H #include "nsspki1t.h" #endif /* NSSPKI1T_H */ -extern const NSSOID nss_builtin_oids[]; -extern const PRUint32 nss_builtin_oid_count; - -/*extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[];*/ -/*extern const PRUint32 nss_attribute_type_alias_count;*/ - extern const NSSOID *NSS_OID_RFC1274_UID; extern const NSSOID *NSS_OID_RFC1274_EMAIL; extern const NSSOID *NSS_OID_RFC2247_DC; diff --git a/security/nss/lib/pki1/oidgen.perl b/security/nss/lib/pki1/oidgen.perl index 27ea9965854..32352506af4 100755 --- a/security/nss/lib/pki1/oidgen.perl +++ b/security/nss/lib/pki1/oidgen.perl @@ -35,7 +35,7 @@ # the terms of any one of the MPL, the GPL or the LGPL. # # ***** END LICENSE BLOCK ***** -$cvs_id = '@(#) $RCSfile: oidgen.perl,v $ $Revision: 1.5 $ $Date: 2005-02-02 22:28:24 $'; +$cvs_id = '@(#) $RCSfile: oidgen.perl,v $ $Revision: 1.6 $ $Date: 2005-03-14 18:02:00 $'; $cfile = shift; $hfile = shift; $count = -1; @@ -244,12 +244,6 @@ static const char OIDDATA_CVS_ID[] = "$g{CVS_ID} ; $cvs_id"; #include "nsspki1t.h" #endif /* NSSPKI1T_H */ -extern const NSSOID nss_builtin_oids[]; -extern const PRUint32 nss_builtin_oid_count; - -/*extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[];*/ -/*extern const PRUint32 nss_attribute_type_alias_count;*/ - EOD ; diff --git a/security/nss/lib/pki1/pki1.h b/security/nss/lib/pki1/pki1.h index 3c91d66fcdf..10c6ed45cb5 100644 --- a/security/nss/lib/pki1/pki1.h +++ b/security/nss/lib/pki1/pki1.h @@ -38,7 +38,7 @@ #define PKI1_H #ifdef DEBUG -static const char PKI1_CVS_ID[] = "@(#) $RCSfile: pki1.h,v $ $Revision: 1.4 $ $Date: 2005-01-20 02:25:49 $"; +static const char PKI1_CVS_ID[] = "@(#) $RCSfile: pki1.h,v $ $Revision: 1.5 $ $Date: 2005-03-14 18:02:00 $"; #endif /* DEBUG */ /* @@ -58,7 +58,9 @@ static const char PKI1_CVS_ID[] = "@(#) $RCSfile: pki1.h,v $ $Revision: 1.4 $ $D PR_BEGIN_EXTERN_C -/* fgmr 19990505 moved these here from oiddata.h */ +extern const NSSOID nss_builtin_oids[]; +extern const PRUint32 nss_builtin_oid_count; + extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[]; extern const PRUint32 nss_attribute_type_alias_count;