Hi,
just wanted to let you know that the current nightly 20060117 works fine on my Solaris Nevada system. I had to include a timegm() implementation into scan-xml.c to get it to compile as described earlier:
diff mt-daapd-cvs-20060117-modified/src/scan-xml.c mt-daapd-cvs-20060117/src/scan-xml.c
116,127d115
< /**
< * Emulate the timegm() GNU extension since it's not present elsewhere
< * and should really not be used at all.
< *
< * Copied from:
< * http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/timegm.3.html
< *
< * This function added by Constantin Gonzalez, constantin at glez dot de.
< */
< time_t timegm (struct tm *tm) {
< time_t ret;
< char *tz;
129,140d116
< tz = getenv("TZ"«»);
< setenv("TZ", "", 1);
< tzset();
< ret = mktime(tm);
< if (tz)
< setenv("TZ", tz, 1);
< else
< unsetenv("TZ"«»);
< tzset();
< return ret;
< }
If you’re interested, I also blogged about it:
http://blogs.sun.com/roller/page/constantin?entry=solaris_home_part_4_streaming
Best regards,
Gonzo