Remove references to POSIX

This commit is contained in:
Daniel Zaoui 2018-06-04 13:38:11 +03:00
parent 4b5ced9b07
commit 4203336691
1 changed files with 1 additions and 3 deletions

View File

@ -2,8 +2,6 @@
# include <config.h>
#endif
#define _POSIX_
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
@ -467,7 +465,7 @@ int main(int argc, char **argv)
/* Replace the current command line to hide the Exactness part */
int len = argv[argc - 1] + strlen(argv[argc - 1]) - argv[opt_args];
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;
for (i = opt_args; i < argc; i++)