diff options
author | Joseph Hunkeler <jhunk@stsci.edu> | 2011-04-06 09:13:03 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunk@stsci.edu> | 2012-05-25 14:20:34 -0400 |
commit | 37801d15cb3f0c5a16f101a9fa40b7f5e81fce82 (patch) | |
tree | fca25a754cdaef6bb19dd3b3c5f29ced97224210 /duser.h | |
parent | 6456791b6dac4d5d5c0519046fa47492a94cdc44 (diff) | |
download | duser-37801d15cb3f0c5a16f101a9fa40b7f5e81fce82.tar.gz |
Starting to port to Solaris 10... sigh.
Diffstat (limited to 'duser.h')
-rw-r--r-- | duser.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,7 +1,12 @@ #ifndef DUSER_H #define DUSER_H -#include <limits.h> + +#ifndef HAVE_STRCHRNUL +# define strchrnul(s, c) dstrchrnul(s, c) +#endif + +#include <limits.h> #define REGEX_MAX 255 #define CFG_PATH "/usr/local/etc/duser" #define SELF __FUNCTION__ @@ -44,5 +49,6 @@ int user_del(record_t* rec); int user_cmd(const int argc, char* argv[]); int user_choice(char c); int user_add(const char* filename, const char* needle); +char *dstrchrnul(const char* s, int c); #endif |