diff options
Diffstat (limited to 'lib/idcache.c')
-rw-r--r-- | lib/idcache.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/idcache.c b/lib/idcache.c index 3e5f134ae..84e82fabd 100644 --- a/lib/idcache.c +++ b/lib/idcache.c @@ -12,15 +12,19 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #include <stdio.h> #include <sys/types.h> #include <pwd.h> #include <grp.h> -#if defined(USG) || defined(STDC_HEADERS) +#if defined(STDC_HEADERS) || defined(HAVE_STRING_H) #include <string.h> #else #include <strings.h> @@ -199,7 +203,7 @@ getgidbyname (group) group_alist = tail; return &tail->id.g; } - + tail->next = nogroup_alist; nogroup_alist = tail; return 0; |