From 7aa2549d190edbd1d35ffbdfced79c696b7ca0db Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 30 Mar 2008 15:58:28 +0200 Subject: [PATCH] Use the EOVERFLOW module instead of a manual fallback for EOVERFLOW. --- ChangeLog | 3 +++ lib/getugroups.c | 5 +---- modules/getugroups | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 528de10348..d941dd1dce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -83,6 +83,9 @@ * lib/poll.c (EOVERFLOW): Remove fallback. * modules/poll (Depends-on): Add EOVERFLOW. + * lib/getugroups.c (EOVERFLOW): Remove fallback. + * modules/getugroups (Depends-on): Add EOVERFLOW. + * lib/getdelim.c (EOVERFLOW): Remove fallback. * modules/getdelim (Depends-on): Add EOVERFLOW. diff --git a/lib/getugroups.c b/lib/getugroups.c index 4b8752f6b6..e102f21ca1 100644 --- a/lib/getugroups.c +++ b/lib/getugroups.c @@ -1,6 +1,6 @@ /* getugroups.c -- return a list of the groups a user is in - Copyright (C) 1990, 1991, 1998-2000, 2003-2007 Free Software Foundation. + Copyright (C) 1990, 1991, 1998-2000, 2003-2008 Free Software Foundation. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -28,9 +28,6 @@ #include #include -#ifndef EOVERFLOW -# define EOVERFLOW EINVAL -#endif /* Some old header files might not declare setgrent, getgrent, and endgrent. If you don't have them at all, we can't implement this function. diff --git a/modules/getugroups b/modules/getugroups index 634a72b2a8..80f2f3c2d5 100644 --- a/modules/getugroups +++ b/modules/getugroups @@ -7,6 +7,7 @@ lib/getugroups.h m4/getugroups.m4 Depends-on: +EOVERFLOW configure.ac: gl_GETUGROUPS -- 2.30.2