I have tried compiling minidlna but am having errors. I first installed minidlna using "pacman -Sy minidlna jack" as per the FAQ to ensure all dependencies are installed. minidlna runs fine, I then delete the executable and untar the sourcecode to a temp folder. After I type "make" I get the following errors:
$this->bbcode_second_pass_quote('', 'C')ompiling minidlna.c
In file included from /usr/include/fcntl.h:62:0, from minidlna.c:58:
/usr/include/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
/usr/include/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
/usr/include/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
/usr/include/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
/usr/include/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
/usr/include/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
In file included from upnpglobalvars.h:54:0, from minidlna.c:74:
minidlnatypes.h:107:2: error: unknown type name 'time_t'
In file included from minidlna.c:74:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
minidlna.c: In function 'set_startup_time':
minidlna.c:163:2: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
minidlna.c: In function 'main':
minidlna.c:854:2: error: unknown type name 'time_t'
The following command failed:
gcc -Wall -g -O3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/ffmpeg -I/usr/include/libavutil -I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat -o minidlna.o -c minidlna.c
make: *** [minidlna.o] Error 1