diff --git a/lib/posix/options/grp.c b/lib/posix/options/grp.c index 32c840e10164f..af395c88fa00c 100644 --- a/lib/posix/options/grp.c +++ b/lib/posix/options/grp.c @@ -9,8 +9,6 @@ #include #include -#ifdef CONFIG_POSIX_THREAD_SAFE_FUNCTIONS - int getgrnam_r(const char *name, struct group *grp, char *buffer, size_t bufsize, struct group **result) { @@ -33,5 +31,3 @@ int getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t bufsize, struc return ENOSYS; } - -#endif /* CONFIG_POSIX_THREAD_SAFE_FUNCTIONS */ diff --git a/lib/posix/options/pwd.c b/lib/posix/options/pwd.c index f806767f3df90..5cafbb0a3a94a 100644 --- a/lib/posix/options/pwd.c +++ b/lib/posix/options/pwd.c @@ -9,8 +9,6 @@ #include #include -#ifdef CONFIG_POSIX_THREAD_SAFE_FUNCTIONS - int getpwnam_r(const char *nam, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result) { @@ -33,5 +31,3 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, stru return ENOSYS; } - -#endif /* CONFIG_POSIX_THREAD_SAFE_FUNCTIONS */