diff options
author | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2024-11-12 12:39:35 +0100 |
---|---|---|
committer | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2024-11-12 12:39:35 +0100 |
commit | a416637c416b94632ac647d82c5ce67afc8cdcad (patch) | |
tree | 2cf9718a27062ca8356c1c60e7e0509109e6bfa9 /games/blobby | |
parent | shells/nu_plugin_formats: Broken on 15 armv7 (diff) |
games/blobby: Fix build on -CURRENT
/wrkdirs/usr/ports/games/blobby/work/blobbyvolley2-1.1.1/src/./raknet/LinkedList.h:507:12: error: no member named 'last' in 'CircularLinkedList<CircularLinkedListType>'
/wrkdirs/usr/ports/games/blobby/work/blobbyvolley2-1.1.1/src/./raknet/LinkedList.h:524:43: error: no member named 'last' in 'CircularLinkedList<CircularLinkedListType>'
/wrkdirs/usr/ports/games/blobby/work/blobbyvolley2-1.1.1/src/./raknet/LinkedList.h:527:14: error: no member named 'last' in 'CircularLinkedList<CircularLinkedListType>'
/wrkdirs/usr/ports/games/blobby/work/blobbyvolley2-1.1.1/src/./raknet/LinkedList.h:592:13: error: no member named 'last' in 'CircularLinkedList<CircularLinkedListType>'
/wrkdirs/usr/ports/games/blobby/work/blobbyvolley2-1.1.1/src/./raknet/LinkedList.h:609:44: error: no member named 'last' in 'CircularLinkedList<CircularLinkedListType>'
/wrkdirs/usr/ports/games/blobby/work/blobbyvolley2-1.1.1/src/./raknet/LinkedList.h:612:15: error: no member named 'last' in 'CircularLinkedList<CircularLinkedListType>'
Diffstat (limited to 'games/blobby')
-rw-r--r-- | games/blobby/files/patch-src-raknet-LinkedList.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/games/blobby/files/patch-src-raknet-LinkedList.h b/games/blobby/files/patch-src-raknet-LinkedList.h new file mode 100644 index 000000000000..5336662347da --- /dev/null +++ b/games/blobby/files/patch-src-raknet-LinkedList.h @@ -0,0 +1,62 @@ +--- src/raknet/LinkedList.h.orig 2024-11-12 08:04:07 UTC ++++ src/raknet/LinkedList.h +@@ -463,6 +463,7 @@ namespace BasicDataStructures + CircularLinkedList<CircularLinkedListType>::CircularLinkedList( const CircularLinkedList& original_copy ) + { + node * original_copy_pointer; ++ node *last; + node *save_position; + + if ( original_copy.list_size == 0 ) +@@ -504,7 +505,7 @@ namespace BasicDataStructures + + + // Save the current element +- this->last = this->position; ++ last = this->position; + + // Point to the next node in the source list + original_copy_pointer = original_copy_pointer->next; +@@ -521,10 +522,10 @@ namespace BasicDataStructures + save_position = position; + + // Set the previous pointer for the new node +- ( this->position->previous ) = this->last; ++ ( this->position->previous ) = last; + + // Set the next pointer for the old node to the new node +- ( this->last->next ) = this->position; ++ ( last->next ) = this->position; + + } + +@@ -545,6 +546,7 @@ namespace BasicDataStructures + bool CircularLinkedList<CircularLinkedListType>::operator= ( const CircularLinkedList& original_copy ) + { + node * original_copy_pointer; ++ node *last; + node *save_position; + + if ( ( &original_copy ) != this ) +@@ -589,7 +591,7 @@ namespace BasicDataStructures + do + { + // Save the current element +- this->last = this->position; ++ last = this->position; + + // Point to the next node in the source list + original_copy_pointer = original_copy_pointer->next; +@@ -606,10 +608,10 @@ namespace BasicDataStructures + save_position = this->position; + + // Set the previous pointer for the new node +- ( this->position->previous ) = this->last; ++ ( this->position->previous ) = last; + + // Set the next pointer for the old node to the new node +- ( this->last->next ) = this->position; ++ ( last->next ) = this->position; + + } + |