• Eric Blake's avatar
    getopt: allow compilation with C++ · e7b3c4c7
    Eric Blake authored
    A C++ compiler complains that REQUIRE_ORDER is unknown if it is
    buried inside the struct.
    
    * lib/getopt_int.h (__ordering): Hoist enum declaration outside
    struct.
    * lib/getopt.c (_getopt_internal_r): Use correct type.
    Reported by Dagobert Michelson, via Joel E. Denny.
    Signed-off-by: default avatarEric Blake <eblake@redhat.com>
    e7b3c4c7
getopt_int.h 4.97 KB