aboutsummaryrefslogtreecommitdiff
path: root/include/duser.h
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 /include/duser.h
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 'include/duser.h')
-rw-r--r--include/duser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/duser.h b/include/duser.h
index 06cdf84..5a102bb 100644
--- a/include/duser.h
+++ b/include/duser.h
@@ -22,13 +22,13 @@
#define DUSER_H
#ifdef HAVE_CONFIG_H
- #include "config.h"
+#include "config.h"
#endif
#include <limits.h>
#define REGEX_MAX 255
#define SELF __FUNCTION__
-#ifndef _NLINUX_
+#ifndef __NSOLARIS__
# define FMTLIST "%20s\t%5d%23s\n"
#else
# define FMTLIST "%20s\t%5d%16s\n"
@@ -77,7 +77,7 @@ int user_cmd(const int argc, char* argv[]);
int user_choice(char c);
int user_add(const char* filename, const char* needle);
int user_new_list(const char* fname);
-#ifdef _NLINUX_
+#ifdef __NSOLARIS__
char *strcasestr(const char *s, const char *find);
char *strchrnul(const char* s, int c);
#endif