Thanks for the bug report. Does the attached patch to getopt-pfx-core.h fix the bug for you? I'll CC: this to bug-gnulib and to Zack Weinberg, who wrote that file. For those new to this thread, please see .