Compiling icecast on Solaris 10 AMD64 using SUN Studio10 cc
I have built icecast on an AMD64 Laptop running Solaris 10, using the SUN Studio10 compiler. Studio10 cc does not have the predefined "FUNCTION" identifier. Instead it provides "func". So src/logging.h needs a fix as given below:
*** logging.h.orig Tue May 31 19:10:15 2005 --- logging.h Tue May 31 19:14:24 2005
*** 33,38 **** --- 33,42 ---- #define FUNCTION strrchr (FILE, '\') ? strrchr (FILE, '\') + 1 : FILE #endif
- #ifdef __SUNPRO_C
- #define FUNCTION func
- #endif
- #define ERROR0(y) log_write(errorlog, 1, CATMODULE "/", FUNCTION, y) #define ERROR1(y, a) log_write(errorlog, 1, CATMODULE "/", FUNCTION, y, a) #define ERROR2(y, a, b) log_write(errorlog, 1, CATMODULE "/", FUNCTION, y, a, b)