On Mon, Feb 25, 2002 at 17:23:53 +0300, Andrey A. Chernov wrote:
> Your initial fix was incorrect, but intention was right. <grp.h> should
> declare gid_t by itself. Sample quotes included below.
> 
> >From IEEE P1003.1 Draft 7:
> 
> NAME
> 8332 grp.h.group structure
> 8342 The gid_t type shall be defined as described in <sys/types.h>.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I mean that the fix with less header pollution will be something 
like:

#ifndef _GID_T_DECLARED
typedef ...
#define _GID_T_DECLARED
#endif

in _both_ <grp.h> and <sys/types.h> (you need to include <machine/ansi.h> 
in <grp.h> in anycase)

But for simpler solution your fix is enough.

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
  • ... Maxim Sobolev
    • ... Andrey A. Chernov
      • ... Andrey A. Chernov
      • ... Garrett Wollman
        • ... Andrey A. Chernov
          • ... Alexey Dokuchaev
            • ... Terry Lambert
            • ... Андрей Чернов
    • ... Sheldon Hearn
      • ... Andrey A. Chernov
        • ... Sheldon Hearn
        • ... David Malone
          • ... Bruce Evans

Reply via email to