[PATCH] Fix lib/libpam's include of sys/time.h

Garrett Cooper yanegomi at gmail.com
Mon Nov 15 05:55:14 UTC 2010


On Sun, Nov 14, 2010 at 9:14 PM, Garrett Cooper <yanegomi at gmail.com> wrote:
>    libpam uses sys/time.h to pick up ctime, but it's actually defined
> in time.h according to POSIX and the ctime manpage.
>    If someone could help review and commit this patch, it would be
> much appreciated. This is part of a much larger change to fix
> namespace pollution with time.h in sys/time.h.

    Sorry... missed the gettimeofday requirement in the lib. The
library fully compiles with this patch (where sys/time.h isn't
removed). This is POSIX compliant.
Thanks,
-Garrett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lib-libpam-use-time-dot-h.patch
Type: text/x-patch
Size: 403 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20101115/358b6410/lib-libpam-use-time-dot-h.bin


More information about the freebsd-hackers mailing list