define no_argument and friends if needed in compat/getopt

This commit is contained in:
zeromus 2016-03-21 01:33:12 +00:00
parent 86fe433eed
commit 6851ff2737
1 changed files with 10 additions and 0 deletions

View File

@ -60,7 +60,17 @@ extern int optind, opterr, optopt;
#ifdef __cplusplus
}
#endif
/* If these are variously #defined, then we have bigger problems */
#ifndef no_argument
#define no_argument 0
#define required_argument 1
#define optional_argument 2
#endif
/* HAVE_GETOPT_LONG */
#endif
/* pragma once */
#endif