Skip to content

Commit e86abfe

Browse files
committed
posix: system_database_r: remove invalid compilation filters
pwd.c and grp.c both had incorrect preprocessor guards around the stubs that they were implementing. Functions were surrounded by ```cpp .. ``` Which is not at all accurate, since that subprofiling option group is `(CONFIG_)POSIX_SYSTEM_DATABASE_R`.D Remove the guards, since they are invalid anyway, and at most an application will link properly. Signed-off-by: Chris Friedt <[email protected]>
1 parent 04dfa77 commit e86abfe

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

lib/posix/options/grp.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#include <zephyr/sys/util.h>
1010
#include <zephyr/posix/grp.h>
1111

12-
#ifdef CONFIG_POSIX_THREAD_SAFE_FUNCTIONS
13-
1412
int getgrnam_r(const char *name, struct group *grp, char *buffer, size_t bufsize,
1513
struct group **result)
1614
{
@@ -33,5 +31,3 @@ int getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t bufsize, struc
3331

3432
return ENOSYS;
3533
}
36-
37-
#endif /* CONFIG_POSIX_THREAD_SAFE_FUNCTIONS */

lib/posix/options/pwd.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#include <zephyr/sys/util.h>
1010
#include <zephyr/posix/pwd.h>
1111

12-
#ifdef CONFIG_POSIX_THREAD_SAFE_FUNCTIONS
13-
1412
int getpwnam_r(const char *nam, struct passwd *pwd, char *buffer, size_t bufsize,
1513
struct passwd **result)
1614
{
@@ -33,5 +31,3 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, stru
3331

3432
return ENOSYS;
3533
}
36-
37-
#endif /* CONFIG_POSIX_THREAD_SAFE_FUNCTIONS */

0 commit comments

Comments
 (0)