aboutsummaryrefslogtreecommitdiff
path: root/src/user.c
diff options
context:
space:
mode:
authorAlan Brault <alan.brault@incruentatus.net>2011-05-02 16:35:59 -0400
committerAlan Brault <alan.brault@incruentatus.net>2011-05-02 16:35:59 -0400
commit100570c7f91d3bfe8f90536f96c8154c78641b1d (patch)
treebb2aebbbe0da1de1dd6d860a57e1cd9f8b961419 /src/user.c
parent36ce621c0cb28d58913f2d1a84f5125f4a9db285 (diff)
downloadduser-100570c7f91d3bfe8f90536f96c8154c78641b1d.tar.gz
Add configure checks for strchrnul() and strcasestr() and config.h entries
Add __NLINUX__ and __NSOLARIS__ platform checks to configure and config.h entries
Diffstat (limited to 'src/user.c')
-rw-r--r--src/user.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/user.c b/src/user.c
index 72a7c13..f9b24a8 100644
--- a/src/user.c
+++ b/src/user.c
@@ -32,10 +32,6 @@
#include <time.h>
#include <fcntl.h>
#include <libgen.h>
-#ifdef _NLINUX_
-# define HAVE_STRCHRNUL
-# define HAVE_STRCASESTR
-#endif
#include "duser.h"
extern char list_path[PATH_MAX];
@@ -320,7 +316,7 @@ int get_file_count(const char* path)
while((ep = readdir(dp)))
{
-#ifdef _NLINUX_
+#ifdef __NSOLARIS__
char path[PATH_MAX];
struct stat st;
snprintf(path, PATH_MAX, "%s%s", list_path, ep->d_name);
@@ -376,7 +372,7 @@ char** get_file_list(const char* path, int count)
}
while((ep = readdir(dp)))
{
-#ifdef _NLINUX_
+#ifdef __NSOLARIS__
char path[PATH_MAX];
struct stat st;
snprintf(path, PATH_MAX, "%s%s", list_path, ep->d_name);