summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2020-02-10 12:10:43 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2020-02-10 14:01:47 +0100
commit5f1047c8b4f63df8e2f412d2b024ce433fb8e784 (patch)
tree9e43e98ad9e658f0ea30fa6e659bd69d7d33e332 /src/bin
parent98f2c3d5eed611d0e68b77de41c317cb8fb42e6f (diff)
exactness_player: make use of PATH_MAX define instead of posix variant
The use of _POSIX_ has lead to a compile problem on old Ubuntu (16.04) versions. We use PATH_MAX everywhere else so follow suit here. Fixes T8613 Reviewed-by: Ali Alzyod <ali198724@gmail.com> Differential Revision: https://phab.enlightenment.org/D11305
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/exactness/player.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bin/exactness/player.c b/src/bin/exactness/player.c
index 4ff19ed8dc..411b1a64cb 100644
--- a/src/bin/exactness/player.c
+++ b/src/bin/exactness/player.c
@@ -2,8 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#define _POSIX_
6#include <limits.h>
7#include <stdio.h> 5#include <stdio.h>
8#include <stdlib.h> 6#include <stdlib.h>
9#include <getopt.h> 7#include <getopt.h>
@@ -1284,7 +1282,7 @@ int main(int argc, char **argv)
1284 /* Replace the current command line to hide the Exactness part */ 1282 /* Replace the current command line to hide the Exactness part */
1285 int len = argv[argc - 1] + strlen(argv[argc - 1]) - argv[opt_args]; 1283 int len = argv[argc - 1] + strlen(argv[argc - 1]) - argv[opt_args];
1286 memcpy(argv[0], argv[opt_args], len); 1284 memcpy(argv[0], argv[opt_args], len);
1287 memset(argv[0] + len, 0, _POSIX_PATH_MAX - len); 1285 memset(argv[0] + len, 0, PATH_MAX - len);
1288 1286
1289 int i; 1287 int i;
1290 for (i = opt_args; i < argc; i++) 1288 for (i = opt_args; i < argc; i++)