Remove references to POSIX
This commit is contained in:
parent
4b5ced9b07
commit
4203336691
|
@ -2,8 +2,6 @@
|
||||||
# include <config.h>
|
# include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _POSIX_
|
|
||||||
#include <limits.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
@ -467,7 +465,7 @@ int main(int argc, char **argv)
|
||||||
/* Replace the current command line to hide the Exactness part */
|
/* Replace the current command line to hide the Exactness part */
|
||||||
int len = argv[argc - 1] + strlen(argv[argc - 1]) - argv[opt_args];
|
int len = argv[argc - 1] + strlen(argv[argc - 1]) - argv[opt_args];
|
||||||
memcpy(argv[0], argv[opt_args], len);
|
memcpy(argv[0], argv[opt_args], len);
|
||||||
memset(argv[0] + len, 0, _POSIX_PATH_MAX - len);
|
memset(argv[0] + len, 0, MAX_PATH - len);
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
for (i = opt_args; i < argc; i++)
|
for (i = opt_args; i < argc; i++)
|
||||||
|
|
Loading…
Reference in New Issue