diff options
author | rillig <rillig> | 2007-11-30 22:53:54 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-11-30 22:53:54 +0000 |
commit | ebd1a9f44a6446d79c55228161b0ec627570e6f9 (patch) | |
tree | 6812bc9823038d8779c86c1907e77dac9ba8aa52 /net | |
parent | 6e83ecfc9a06d1051e9a53d3d694ca404adbc3af (diff) | |
download | pkgsrc-ebd1a9f44a6446d79c55228161b0ec627570e6f9.tar.gz |
Fixed gcc4 build failure.
Diffstat (limited to 'net')
-rw-r--r-- | net/chrony/distinfo | 3 | ||||
-rw-r--r-- | net/chrony/patches/patch-ah | 33 |
2 files changed, 35 insertions, 1 deletions
diff --git a/net/chrony/distinfo b/net/chrony/distinfo index a85784817e6..9bdbc8cbe50 100644 --- a/net/chrony/distinfo +++ b/net/chrony/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.4 2006/01/08 13:27:53 joerg Exp $ +$NetBSD: distinfo,v 1.5 2007/11/30 22:53:54 rillig Exp $ SHA1 (chrony-1.20.tar.gz) = 8a739038b208bf63e4d0afbee44e8fea3c9aa480 RMD160 (chrony-1.20.tar.gz) = ec6f570c29b68983752ff8b025d908372bdf2fb1 @@ -10,3 +10,4 @@ SHA1 (patch-ad) = 98f5ba97e0052a0e83a0017769bd869ce593c461 SHA1 (patch-ae) = f55536cf3be9c9fc55345a3d21b88500e30807ad SHA1 (patch-af) = 3d09c0aba56bdce704a923ae7c15673cdb6a7489 SHA1 (patch-ag) = 4616fdfed44467d48962303b8e34ca96b6ac0fc5 +SHA1 (patch-ah) = da3edfff06381b2d028faa1a6d2f1a79da818404 diff --git a/net/chrony/patches/patch-ah b/net/chrony/patches/patch-ah new file mode 100644 index 00000000000..dff29fb5352 --- /dev/null +++ b/net/chrony/patches/patch-ah @@ -0,0 +1,33 @@ +$NetBSD: patch-ah,v 1.1 2007/11/30 22:53:54 rillig Exp $ + +Resolved recursive data type. + +--- addrfilt.c.orig 2002-02-28 23:27:08.000000000 +0000 ++++ addrfilt.c 2007-11-30 22:49:50.000000000 +0000 +@@ -43,15 +43,11 @@ + /* Define the table size */ + #define TABLE_SIZE (1UL<<NBITS) + +-struct _TableNode; +- +-typedef struct _TableNode ExtendedTable[TABLE_SIZE]; +- + typedef enum {DENY, ALLOW, AS_PARENT} State; + +-typedef struct _TableNode { ++typedef struct TableNode { + State state; +- ExtendedTable *extended; ++ struct TableNode **extended; /* [TABLE_SIZE] */ + } TableNode; + + struct ADF_AuthTableInst { +@@ -124,7 +120,7 @@ open_node(TableNode *node) + + if (node->extended == NULL) { + +- node->extended = MallocNew(ExtendedTable); ++ node->extended = malloc(sizeof(*node->extended) * TABLE_SIZE); + + for (i=0; i<TABLE_SIZE; i++) { + child_node = &((*(node->extended))[i]); |