mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
fix build with llvm22, thanks to tb@ who figured this out
This commit is contained in:
@@ -3,6 +3,7 @@ ONLY_FOR_ARCHS = ${MONO_ARCHS}
|
||||
COMMENT = additional libraries for running games with fnaify
|
||||
V = 0.1
|
||||
DISTNAME = fnaify-extralibs-${V}
|
||||
REVISION = 0
|
||||
|
||||
SHARED_LIBS += SDL2_image_compact 0.0 # 0.0
|
||||
SHARED_LIBS += atomstb 0.0 # 0.0
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
Index: AZSNotSFML/atomstb/stb_vorbis.c
|
||||
--- AZSNotSFML/atomstb/stb_vorbis.c.orig
|
||||
+++ AZSNotSFML/atomstb/stb_vorbis.c
|
||||
@@ -1363,7 +1363,7 @@ static int set_file_offset(stb_vorbis *f, unsigned int
|
||||
#endif
|
||||
f->eof = 0;
|
||||
if (USE_MEMORY(f)) {
|
||||
- if (f->stream_start + loc >= f->stream_end || f->stream_start + loc < f->stream_start) {
|
||||
+ if (f->stream_start + loc >= f->stream_end) {
|
||||
f->stream = f->stream_end;
|
||||
f->eof = 1;
|
||||
return 0;
|
||||
Reference in New Issue
Block a user