diff --git a/headers/posix/fts.h b/headers/compatibility/bsd/fts.h similarity index 98% rename from headers/posix/fts.h rename to headers/compatibility/bsd/fts.h index 2f3780b715..1b7467740e 100644 --- a/headers/posix/fts.h +++ b/headers/compatibility/bsd/fts.h @@ -33,6 +33,10 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include + +#ifdef _DEFAULT_SOURCE + #include typedef struct { @@ -135,4 +139,6 @@ int fts_set(FTS *, FTSENT *, int); void fts_set_clientptr(FTS *, void *); __END_DECLS +#endif /* _DEFAULT_SOURCE */ + #endif /* !_FTS_H_ */ diff --git a/src/libs/bsd/Jamfile b/src/libs/bsd/Jamfile index 0b3c70d046..3f22999240 100644 --- a/src/libs/bsd/Jamfile +++ b/src/libs/bsd/Jamfile @@ -13,6 +13,7 @@ for architectureObject in [ MultiArchSubDirSetup ] { err.c explicit_bzero.c fgetln.c + fts.c getpass.c issetugid.c lutimes.c diff --git a/src/system/libroot/posix/fts.c b/src/libs/bsd/fts.c similarity index 100% rename from src/system/libroot/posix/fts.c rename to src/libs/bsd/fts.c diff --git a/src/system/libroot/posix/Jamfile b/src/system/libroot/posix/Jamfile index c8322d107b..3271dce2c5 100644 --- a/src/system/libroot/posix/Jamfile +++ b/src/system/libroot/posix/Jamfile @@ -32,7 +32,6 @@ for architectureObject in [ MultiArchSubDirSetup ] { dirent.c errno.c fcntl.cpp - fts.c glob.c inttypes.c libgen.cpp