* gettext-tools/src/cldr-plurals.c: Include "basename.h".
(main): Place optind on the right hand side of the expression, to
work around build failure on Solaris.
Reported by Dagobert Michelsen in:
<https://lists.gnu.org/archive/html/bug-gettext/2015-06/msg00015.html>.
+2015-06-23 Daiki Ueno <ueno@gnu.org>
+
+ * cldr-plurals.c: Include "basename.h".
+ (main): Place optind on the right hand side of the expression, to
+ work around build failure on Solaris.
+
2015-06-23 Daiki Ueno <ueno@gnu.org>
* Makefile.am (uninstall-local): Remove cldr-plurals.
# include <config.h>
#endif
+#include "basename.h"
#include "cldr-plural-exp.h"
#include "c-ctype.h"
#include <errno.h>
if (do_help)
usage (EXIT_SUCCESS);
- if (argc - optind == 2)
+ if (argc == optind + 2)
{
/* Two arguments: Read CLDR rules from a file. */
#if DYNLOAD_LIBEXPAT || HAVE_LIBEXPAT
#endif
}
}
- else if (argc - optind == 0)
+ else if (argc == optind)
{
/* No argument: Read CLDR rules from standard input. */
char *line = NULL;