changeset 9832:85800f596ad2

Use the EOVERFLOW module instead of a manual fallback for EOVERFLOW.
author Bruno Haible <bruno@clisp.org>
date Sun, 30 Mar 2008 15:58:28 +0200
parents 787bf3487678
children 48eddbd8edd5
files ChangeLog lib/getugroups.c modules/getugroups
diffstat 3 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Mar 30 15:18:13 2008 +0200
+++ b/ChangeLog	Sun Mar 30 15:58:28 2008 +0200
@@ -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.
 
--- a/lib/getugroups.c	Sun Mar 30 15:18:13 2008 +0200
+++ b/lib/getugroups.c	Sun Mar 30 15:58:28 2008 +0200
@@ -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 <unistd.h>
 
 #include <errno.h>
-#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.
--- a/modules/getugroups	Sun Mar 30 15:18:13 2008 +0200
+++ b/modules/getugroups	Sun Mar 30 15:58:28 2008 +0200
@@ -7,6 +7,7 @@
 m4/getugroups.m4
 
 Depends-on:
+EOVERFLOW
 
 configure.ac:
 gl_GETUGROUPS