From c9241220099b47d967f18af96e18fdea5adebf7e Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sun, 13 Aug 2006 19:19:47 +0000 Subject: [PATCH] Add some linux compatibility defines, _DIRENT_HAVE_D_NAMLEN and _DIRENT_HAVE_D_TYPE. --- sys/sys/dirent.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/sys/dirent.h b/sys/sys/dirent.h index af9ecaad03..4e85397cb8 100644 --- a/sys/sys/dirent.h +++ b/sys/sys/dirent.h @@ -32,7 +32,7 @@ * * @(#)dirent.h 8.3 (Berkeley) 8/10/94 * $FreeBSD: src/sys/sys/dirent.h,v 1.11 1999/12/29 04:24:39 peter Exp $ - * $DragonFly: src/sys/sys/dirent.h,v 1.5 2005/08/27 20:23:05 joerg Exp $ + * $DragonFly: src/sys/sys/dirent.h,v 1.6 2006/08/13 19:19:47 dillon Exp $ */ #ifndef _SYS_DIRENT_H_ @@ -75,6 +75,12 @@ struct dirent { /* name, NUL-terminated */ }; +/* + * Linux compatibility, but its a good idea anyhow + */ +#define _DIRENT_HAVE_D_NAMLEN +#define _DIRENT_HAVE_D_TYPE + #if !defined(_KERNEL) && defined(__BSD_VISIBLE) #define d_ino d_fileno #endif -- 2.41.0