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: *** [tivo_utils.o] Error 1
Adding the following to the includes in tivo_utils.c allows minidlna to make without those warnings and error:
Those are the headers for open, read & close used in is_tivo_file().
Actually, all that's needed is:
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.