aboutsummaryrefslogtreecommitdiff
path: root/src/user.c
diff options
context:
space:
mode:
authorAlan Brault <alan.brault@incruentatus.net>2011-05-02 18:47:10 -0400
committerAlan Brault <alan.brault@incruentatus.net>2011-05-02 18:47:10 -0400
commitc14ecfe452046c00ffe83171ec7f9b64ff374795 (patch)
tree605a01281d2227d85048e0fe6875de5635170a71 /src/user.c
parent817b384592e730f4f832bfbe92a948970840ee33 (diff)
downloadduser-c14ecfe452046c00ffe83171ec7f9b64ff374795.tar.gz
Make strcasestr() and strchrnul() into separate compat files
Force everyone to use compat functions not just Solaris Remove libsysfs from buildconf Add libtool support (needed for libdusercompat.a)
Diffstat (limited to 'src/user.c')
-rw-r--r--src/user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user.c b/src/user.c
index f9b24a8..3ff49b4 100644
--- a/src/user.c
+++ b/src/user.c
@@ -316,7 +316,7 @@ int get_file_count(const char* path)
while((ep = readdir(dp)))
{
-#ifdef __NSOLARIS__
+#ifdef HAVE_SOLARIS
char path[PATH_MAX];
struct stat st;
snprintf(path, PATH_MAX, "%s%s", list_path, ep->d_name);
@@ -372,7 +372,7 @@ char** get_file_list(const char* path, int count)
}
while((ep = readdir(dp)))
{
-#ifdef __NSOLARIS__
+#ifdef HAVE_SOLARIS
char path[PATH_MAX];
struct stat st;
snprintf(path, PATH_MAX, "%s%s", list_path, ep->d_name);