From 823aabe9b4e791e407f7e859b405545676d7c16f Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 11 Aug 2014 03:19:39 +0000 Subject: work around lack of d_namlen and ALIGN/ALIGNBYTES on Linux --- test-dirent-namlen.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test-dirent-namlen.c (limited to 'test-dirent-namlen.c') diff --git a/test-dirent-namlen.c b/test-dirent-namlen.c new file mode 100644 index 00000000..4a007892 --- /dev/null +++ b/test-dirent-namlen.c @@ -0,0 +1,10 @@ +#include +#include + +int +main(void) +{ + struct dirent entry; + + return (sizeof(entry.d_namlen) == 0); +} -- cgit v1.2.3