[LTP] [PATCH 1/1] syscalls/ustat: Fix build for libc without ustat() support

Cyril Hrubis chrubis@suse.cz
Wed Oct 11 14:52:36 CEST 2017


Hi!
> +#else /* systems without ustat() */
              ^
	      I think that we can avoid this comment, the TCONF message
	      below is clear enough...

> +#if defined(HAVE_SYS_USTAT_H) && defined(HAVE_USTAT)
> +#include <sys/ustat.h>

Logically following is bit cleaner, not that it matters that much:

#ifdef HAVE_USTAT
# ifdef HAVE_SYS_USTAT_H
#  include <sys/ustat.h>
# endif
...



-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list