20060117 works on Solaris (with a timegm() tweak)

FireFly Media Server Firefly Media Server Forums Firefly Media Server Nightlies Feedback 20060117 works on Solaris (with a timegm() tweak)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #164
    Gonzo
    Participant

    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

    #3923
    rpedde
    Participant

    I have the great configure clean-up to do, and I’ll add this in when I get to that point. Hopefully it will be relatively soon. I’ll post here when I’ve got this going.

    — Ron

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Nightlies Feedback’ is closed to new topics and replies.