diff --git a/include/ntfs-3g/ntfstime.h b/include/ntfs-3g/ntfstime.h index f3a89dd8..80e163f8 100644 --- a/include/ntfs-3g/ntfstime.h +++ b/include/ntfs-3g/ntfstime.h @@ -39,7 +39,7 @@ /* * assume "struct timespec" is not defined if st_mtime is not defined */ -#if !defined(st_mtime) & !defined(__timespec_defined) +#if !defined(st_mtime) struct timespec { time_t tv_sec; long tv_nsec; diff --git a/libntfs-3g/ioctl.c b/libntfs-3g/ioctl.c index b059a53f..a3a56722 100644 --- a/libntfs-3g/ioctl.c +++ b/libntfs-3g/ioctl.c @@ -48,7 +48,9 @@ #ifdef HAVE_LIMITS_H #include #endif +#ifdef HAVE_SYSLOG_H #include +#endif #ifdef HAVE_SYS_TYPES_H #include #endif