20120630 version doesn't compile

  • gharris999

    gharris999 - 2012-07-03

    The latest updates to tivo_utils.c seems to break making minidlna.  Specifically, I'm getting the following warnings & error:

    gcc -DHAVE_CONFIG_H -I.    -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -g -O2 -MT tivo_utils.o -MD -MP -MF .deps/tivo_utils.Tpo -c -o tivo_utils.o tivo_utils.c
    tivo_utils.c: In function is_tivo_file:
    tivo_utils.c:154:2: warning: implicit declaration of function open [-Wimplicit-function-declaration]
    tivo_utils.c:154:18: error: O_RDONLY undeclared (first use in this function)
    tivo_utils.c:154:18: note: each undeclared identifier is reported only once for each function it appears in
    make[2]: *** [tivo_utils.o] Error 1

    Adding the following to the includes in tivo_utils.c allows minidlna to make without those warnings and error:

    #include <sys/types.h>
    #include <sys/stat.h>
    #include <fcntl.h>
    #include <unistd.h>

    Those are the headers for open, read & close used in is_tivo_file().

  • gharris999

    gharris999 - 2012-07-03

    Actually, all that's needed is:

    #include <fcntl.h>
    #include <unistd.h>

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks