mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
Added patch to oggenc.c to allow building on haiku
This commit is contained in:
@@ -9,3 +9,18 @@ diff -urN vorbis-tools-1.2.0/configure.ac vorbis-tools-1.2.0-haiku/configure.ac
|
||||
AC_CHECK_LIB(nsl, gethostbyname, SOCKET_LIBS="-lnsl $SOCKET_LIBS")
|
||||
|
||||
|
||||
diff -urN vorbis-tools-1.2.0/oggenc/oggenc.c vorbis-tools-1.2.0-haiku/oggenc/oggenc.c
|
||||
--- vorbis-tools-1.2.0/oggenc/oggenc.c 2009-02-21 06:39:37.000000000 +0000
|
||||
+++ vorbis-tools-1.2.0-haiku/oggenc/oggenc.c 2009-02-21 07:51:52.000000000 +0000
|
||||
@@ -264,10 +264,10 @@
|
||||
char *start, *end;
|
||||
|
||||
start = infiles[i];
|
||||
+ char *extension = (opt.with_skeleton) ? ".oga" : ".ogg";
|
||||
end = strrchr(infiles[i], '.');
|
||||
end = end?end:(start + strlen(infiles[i])+1);
|
||||
|
||||
- char *extension = (opt.with_skeleton) ? ".oga" : ".ogg";
|
||||
out_fn = malloc(end - start + 5);
|
||||
strncpy(out_fn, start, end-start);
|
||||
out_fn[end-start] = 0;
|
||||
|
||||
Reference in New Issue
Block a user