Need to #include as LC_ALL wasn't being found otherwise. --- getopt-1.1.5/getopt.c.orig 2012-11-14 07:57:53.606143868 -0800 +++ getopt-1.1.5/getopt.c 2012-11-14 08:03:26.644112033 -0800 @@ -58,6 +58,7 @@ #include #include #include +#include #if LIBCGETOPT #include