summaryrefslogtreecommitdiffstats
path: root/test-dirent-namlen.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-11 03:19:39 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-11 03:19:39 +0000
commitba9c8fa4f7d85bc8e10e817828f80b0b6daa1473 (patch)
tree650cd9aedcd2317dabef1060960c7ad442ad3dc9 /test-dirent-namlen.c
parent487a0333d2d9674139ee16d363f368f035cf4fdc (diff)
downloadmandoc-ba9c8fa4f7d85bc8e10e817828f80b0b6daa1473.tar.gz
work around lack of d_namlen and ALIGN/ALIGNBYTES on Linux
Diffstat (limited to 'test-dirent-namlen.c')
-rw-r--r--test-dirent-namlen.c10
1 files changed, 10 insertions, 0 deletions
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 <sys/types.h>
+#include <dirent.h>
+
+int
+main(void)
+{
+ struct dirent entry;
+
+ return (sizeof(entry.d_namlen) == 0);
+}