diff --git a/include/cdio/udf_time.h b/include/cdio/udf_time.h index 791fcdd9..535a3db0 100644 --- a/include/cdio/udf_time.h +++ b/include/cdio/udf_time.h @@ -29,6 +29,14 @@ #include +#ifndef HAVE_STRUCT_TIMESPEC +#define HAVE_STRUCT_TIMESPEC +struct timespec { + time_t tv_sec; /* Seconds */ + long tv_nsec; /* Nanoseconds */ +}; +#endif + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */