Project

General

Profile

tickets #115862

"minimum" not declared in package ddnet

Added by AdaLovelace 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Good First Issues
Target version:
-
Start date:
2022-08-28
Due date:
% Done:

0%

Estimated time:

Description

https://build.opensuse.org/package/live_build_log/openSUSE:Factory:zSystems/ddnet/standard/s390x

We have got the following error message:
[ 225s] /home/abuild/rpmbuild/BUILD/ddnet-16.2.2/src/engine/shared/datafile.cpp: In member function 'bool CDataFileReader::Open(IStorage*, const char*, int)':
[ 225s] /home/abuild/rpmbuild/BUILD/ddnet-16.2.2/src/engine/shared/datafile.cpp:205:56: error: 'minimum' was not declared in this scope
[ 225s] 205 | swap_endian(m_pDataFile->m_pData, sizeof(int), minimum(static_cast(Header.m_Swaplen), Size) / sizeof(int));
[ 225s] | ~~~~~~
[ 225s] At global scope:

1) Branch https://build.opensuse.org/package/show/games/ddnet
2) Checkout your home directory
3) Extract the archive
4) Search for minimum
5) Create a patch for the declaration
6) Add the patch with "osc add"

Also available in: Atom PDF