1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

libast: remove antiquated macOS bug workaround

That Mac OS X bug workaround is now 23 days shy of the age of
majority, and that bug (symlinks testing as regular files) is
pretty basic, so I'm betting it's fixed by now.

src/lib/libast/include/ast_dir.h:
- Do not disable D_TYPE on macOS.
This commit is contained in:
Martijn Dekker 2021-03-04 23:42:07 +00:00
parent b48e5b3365
commit 7a0934a8d6

View file

@ -64,13 +64,7 @@
#define D_RECSIZ(d,n) (sizeof(*(d))-sizeof((d)->d_name)+((n)+sizeof(char*))&~(sizeof(char*)-1))
/*
* NOTE: 2003-03-27 mac osx bug symlink==DT_REG bug discovered;
* the kernel *and* all directories must be fixed, so d_type
* is summarily disabled until we see that happen
*/
#if _mem_d_type_dirent && defined(DT_UNKNOWN) && defined(DT_REG) && defined(DT_DIR) && defined(DT_LNK) && ! ( __APPLE__ || __MACH__ )
#if _mem_d_type_dirent && defined(DT_UNKNOWN) && defined(DT_REG) && defined(DT_DIR) && defined(DT_LNK)
#define D_TYPE(d) ((d)->d_type)
#endif