diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/nsss/nsss-switch.h | 6 | ||||
-rw-r--r-- | src/libnsss/deps-lib/nsss | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/include/nsss/nsss-switch.h b/src/include/nsss/nsss-switch.h index 1bfe50f..8ee428e 100644 --- a/src/include/nsss/nsss-switch.h +++ b/src/include/nsss/nsss-switch.h @@ -5,6 +5,7 @@ #include <sys/types.h> #include <limits.h> +#include <unistd.h> #include <skalibs/tai.h> #include <skalibs/buffer.h> #include <skalibs/stralloc.h> @@ -14,7 +15,12 @@ #include <nsss/shadow-switch.h> #define NSSS_SWITCH_BUFSIZE 4096 + +#ifdef LOGIN_NAME_MAX #define NSSS_SWITCH_NAME_MAXLEN LOGIN_NAME_MAX +#else +#define NSSS_SWITCH_NAME_MAXLEN _SC_LOGIN_NAME_MAX +#endif typedef struct nsss_switch_s nsss_switch_t, *nsss_switch_t_ref ; struct nsss_switch_s diff --git a/src/libnsss/deps-lib/nsss b/src/libnsss/deps-lib/nsss index 6a51e6a..5c2630c 100644 --- a/src/libnsss/deps-lib/nsss +++ b/src/libnsss/deps-lib/nsss @@ -109,3 +109,4 @@ nsss_unix_shadow_getbyname.o nsss_unix_shadow_here.o nsss_unix_start.o -lskarnet +-lpthread |