diff options
Diffstat (limited to 'pjsip/src/pjsua/getopt.c')
-rw-r--r-- | pjsip/src/pjsua/getopt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjsip/src/pjsua/getopt.c b/pjsip/src/pjsua/getopt.c index caa8920f..5d4689cf 100644 --- a/pjsip/src/pjsua/getopt.c +++ b/pjsip/src/pjsua/getopt.c @@ -278,7 +278,7 @@ static char *posixly_correct; On some systems, it contains special magic macros that don't work in GCC. */ #include <string.h> -#define my_index strchr +#define my_index pj_native_strchr #else static char * @@ -644,7 +644,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) then exchange with previous non-options as if it were an option, then skip everything else like a non-option. */ - if (optind != argc && !strcmp (argv[optind], "--")) + if (optind != argc && !pj_native_strcmp(argv[optind], "--")) { optind++; |