summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2016-09-27 12:15:02 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2016-09-27 12:15:02 +0100
commit925df02c831eaef61c62b95097994d8b8c222af9 (patch)
tree192f7d8db63b50c0e282cea2422936cb4b4e6846
parent274f326f3b9b25cbea9b11a0dce469636c08b462 (diff)
downloadluxio-925df02c831eaef61c62b95097994d8b8c222af9.tar.gz
If a platform has DT_UNKNOWN, turn on D_TYPE
-rw-r--r--config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.h b/config.h
index db10eda..38645f5 100644
--- a/config.h
+++ b/config.h
@@ -37,5 +37,13 @@
/* MINIX does not have this */
# define IFNAMSIZ 128
#endif
+
+/* Some platforms have DT_* anyway, expose them if present */
+#ifndef HAVE_D_TYPE
+#ifdef DT_UNKNOWN
+#define HAVE_D_TYPE
+#endif
+#endif
+
#endif /* LUXIO_CONFIG_H */