diff --git a/lib/roken/roken.h b/lib/roken/roken.h index 03345079e..d7a013a23 100644 --- a/lib/roken/roken.h +++ b/lib/roken/roken.h @@ -107,7 +107,7 @@ int setenv(const char *var, const char *val, int rewrite); void unsetenv(const char *name); #endif -#ifndef HAVE_GETUSERSHELL +#if !defined(HAVE_GETUSERSHELL) || defined(NEED_GETUSERSHELL_PROTO) char *getusershell(void); #endif diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 03345079e..d7a013a23 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -107,7 +107,7 @@ int setenv(const char *var, const char *val, int rewrite); void unsetenv(const char *name); #endif -#ifndef HAVE_GETUSERSHELL +#if !defined(HAVE_GETUSERSHELL) || defined(NEED_GETUSERSHELL_PROTO) char *getusershell(void); #endif