• Show log

    Commit

  • Hash : 6471b462
    Author : Eric Blake
    Date : 2009-09-24T10:57:14

    getopt: fix inclusion guards for cygwin
    
    cygwin <unistd.h> includes <getopt.h>, but gnulib <getopt.h> includes
    <unistd.h>, so system declarations were happening after gnulib
    replacements, leading to multiply-defined rpl_readlink error on
    cygwin 1.5.  The solution is to ensure that the system <unistd.h>
    is complete prior to any of gnulib's contents, by picking up
    system <getopt.h> in preference to a cycle to <unistd.h>.
    
    * modules/getopt-posix (Depends-on): Add include-next.
    (Makefile.am): Substitute more items in replacement header.
    * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
    <getopt.h>.
    * lib/getopt.in.h (includes): Use split inclusion guard, and
    prefer <getopt.h> over include <unistd.h> when one is present.
    (option): Also override name of 'struct option'.
    
    Signed-off-by: Eric Blake <ebb9@byu.net>
    

  • README

  • This directory contains metainformation about the gnulib modules, one or two
    files per module. These files are used by gnulib-tool.
    
    For every module,
      - the file <module> is the metainformation about the library code of the
        module,
      - the file <module>-tests is the metainformation about the unit test of
        the module (optional but recommended).
    
    All the files in this directory are distributed under the following copyright:
    
      Copyright (C) 2002-2009 Free Software Foundation, Inc.
      Copying and distribution of this file, with or without modification,
      in any medium, are permitted without royalty provided the copyright
      notice and this notice are preserved.