aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit823aabe9b4e791e407f7e859b405545676d7c16f (patch)
tree4b806873f1828b047f4bc68f81e8179782648e70 /test-dirent-namlen.c
parentf83aa17768d68d5034131b442e131541637a65b6 (diff)
downloadmandoc-823aabe9b4e791e407f7e859b405545676d7c16f.tar.gz
mandoc-823aabe9b4e791e407f7e859b405545676d7c16f.tar.zst
mandoc-823aabe9b4e791e407f7e859b405545676d7c16f.zip
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);
+}