scott snyder
2001-Mar-11 18:20 UTC
[vorbis-dev] patches for building vorbis-tools on irix with sgi cc
hi - I was just trying to build vorbis-tools-1.0beta4 on an irix 6.5 system using the native C compiler (version 7.21, i think). I had to make a few changes to the sources to get the package to compile. There were a couple files that used alloca() but didn't include alloca.h. There was another source that used index(). On irix, you need to include strings.h to get that declared. However, i think a better fix is just to replace it by strchr(). *** ogg123/ogg123.c-orig Sun Mar 11 19:59:49 2001 --- ogg123/ogg123.c Sun Mar 11 20:00:02 2001 *************** *** 29,34 **** --- 29,35 ---- #include <errno.h> #include <time.h> #include <getopt.h> + #include <alloca.h> #include "ogg123.h" *** oggenc/audio.c-orig Sun Mar 11 19:59:05 2001 --- oggenc/audio.c Sun Mar 11 19:59:14 2001 *************** *** 14,19 **** --- 14,20 ---- #include <string.h> #include <sys/types.h> #include <math.h> + #include <alloca.h> #include "audio.h" #include "platform.h" *** vorbiscomment/vcomment.c-orig Sun Mar 11 20:15:04 2001 --- vorbiscomment/vcomment.c Sun Mar 11 20:15:09 2001 *************** *** 193,199 **** * as the comment spec requires. For the moment, we * also restrict ourselves to 0-terminated values */ ! mark = index(line, '='); if (mark == NULL) return -1; value = line; --- 193,199 ---- * as the comment spec requires. For the moment, we * also restrict ourselves to 0-terminated values */ ! mark = strchr(line, '='); if (mark == NULL) return -1; value = line; --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.