stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5f1047c8b4f63df8e2f412d2b024ce433fb8e784

commit 5f1047c8b4f63df8e2f412d2b024ce433fb8e784
Author: Stefan Schmidt <[email protected]>
Date:   Mon Feb 10 12:10:43 2020 +0100

    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 <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D11305
---
 src/bin/exactness/player.c | 4 +---
 1 file changed, 1 insertion(+), 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 @@
 # include <config.h>
 #endif
 
-#define _POSIX_
-#include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <getopt.h>
@@ -1284,7 +1282,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, PATH_MAX - len);
 
         int i;
         for (i = opt_args; i < argc; i++)

-- 


Reply via email to