Use the EOVERFLOW module instead of a manual fallback for EOVERFLOW.
authorBruno Haible <bruno@clisp.org>
Sun, 30 Mar 2008 13:58:28 +0000 (15:58 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 30 Mar 2008 13:58:28 +0000 (15:58 +0200)
ChangeLog
lib/getugroups.c
modules/getugroups

index 528de10348417dfe8483bcf9774456a397f2ab0a..d941dd1dce0ca027d912473055ae155b9d61f9c2 100644 (file)
--- 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.
 
index 4b8752f6b669d564f04561e3bb3bba07d19feb87..e102f21ca1e90e70065713a15d8d84a20015fe25 100644 (file)
@@ -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.
index 634a72b2a8d5922ff646e6096b01addae58ef281..80f2f3c2d50da49982dcbacea83a5a682a799b72 100644 (file)
@@ -7,6 +7,7 @@ lib/getugroups.h
 m4/getugroups.m4
 
 Depends-on:
+EOVERFLOW
 
 configure.ac:
 gl_GETUGROUPS