File: 06_fix_build_sdlnet.patch

package info (click to toggle)
warmux 1%3A11.04.1%2Brepack2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 126,388 kB
  • sloc: cpp: 186,040; xml: 8,909; sh: 3,358; makefile: 1,052; ansic: 713
file content (14 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fix FTBFS with libsdl-net 1.2.8.
Author: Felix Geyer <debfx-pkg@fobos.de>

--- warmux-11.04.1+repack.orig/lib/warmux/action/action.cpp
+++ warmux-11.04.1+repack/lib/warmux/action/action.cpp
@@ -85,7 +85,7 @@
 {
   m_creator = _creator;
 
-  m_header.len = SDLNet_Read32(buffer);
+  m_header.len = SDLNet_Read32(const_cast<char*>(buffer));
   ASSERT(m_header.len >= sizeof(Header));
   buffer += 4;
   // All of the following could be skipped for the actions we now,