• 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
    * 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>
getopt_int.h 4.97 KB