[getopt] Fixed our own implementation of getopt()

We have own code for getopt() that's not used now. But if we
try compiling emugen on platform without native getopt(),
e.g. Windows, we need to use ours. It had a bug where we were
not advancing the |optind| variable if option's value was in
the next |argv| item. This CL fixed it

Change-Id: I4d1f4cf226f22817fdbba28a4fbc6f34ee78ea83
1 file changed
tree: 349e4130214d5e55875d3c90785e9c2e427c586c
  1. android/
  2. host/
  3. .gitignore