leecher1337/panasonic-rec

udf_time.c:156:45: error: parameter 1 ('ts') has incomplete type

Opened this issue · 2 comments

Udf doesn't compile since latest modfications ("... support for raw direct access to hdd ...", commit e31db7b). See output:
"cc -O3 -mtune=i686 -march=i486 -pipe udf_file.c udf_fs.c udf_time.c udf_dump.c -o udf_dump
In file included from cdio/udf.h:137:0,
from udf_private.h:29,
from udf_file.c:25:
cdio/udf_time.h:74:7: warning: 'struct timespec' declared inside parameter list [enabled by default]
udf_timestamp_t dest);
cdio/udf_time.h:74:7: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
In file included from cdio/udf.h:137:0,
from udf_private.h:29,
from udf_time.c:51:
cdio/udf_time.h:74:7: warning: 'struct timespec' declared inside parameter list [enabled by default]
udf_timestamp_t *dest);
cdio/udf_time.h:74:7: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
udf_time.c:156:36: warning: 'struct timespec' declared inside parameter list [enabled by default]
udf_timespec_to_stamp(const struct timespec ts, udf_timestamp_t *dest)
udf_time.c:156:45: error: parameter 1 ('ts') has incomplete type
udf_timespec_to_stamp(const struct timespec ts, udf_timestamp_t *dest)
In file included from cdio/udf.h:137:0,
from udf_dump.c:24:
cdio/udf_time.h:74:7: warning: 'struct timespec' declared inside parameter list [enabled by default]
udf_timestamp_t *dest);
cdio/udf_time.h:74:7: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
Makefile:6: recipe for target 'udf_dump' failed
mingw32-make: *
* [udf_dump] Error 1"

This is an known issue in MinGW runtime v3.21. Refere to: libusb/libusb#55

Possible workaround: Include <unistd.h> in .\cdio\udf_time.h