shithub: npe

Download patch

ref: 6a93414a2883e0ad4611f249810bd6b46f0a9f7c
parent: e03cb8874ab650b63ca2323f8741556a6545546a
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Mar 19 06:01:27 EDT 2021

dirent.h: define more DT_* values and _DIRENT_HAVE_D_TYPE

--- a/include/npe/dirent.h
+++ b/include/npe/dirent.h
@@ -3,11 +3,19 @@
 
 #include <npe.h>
 
+#ifndef _DIRENT_HAVE_D_TYPE
+#define _DIRENT_HAVE_D_TYPE 1
+#endif
+
 enum {
-	DT_LNK = -1,
 	DT_UNKNOWN = 0,
 	DT_FILE,
 	DT_DIR,
+	DT_LNK = DT_UNKNOWN,
+	DT_BLK = DT_UNKNOWN,
+	DT_CHR = DT_UNKNOWN,
+	DT_FIFO = DT_UNKNOWN,
+	DT_SOCK = DT_UNKNOWN,
 };
 
 struct dirent {