From 964564d2904a7ee31fdbe4302d2d5f9700a9ceb6 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 5 Jul 2017 16:45:55 -0700 Subject: [PATCH] Claim to have a POSIX shell and utilities. We pretty much do these days. And apparently some GNU tools turn on obsolete backwards-compatible behaviors otherwise. Bug: http://b/63145226 Test: builds Change-Id: I9a8af860768cc2c10548f172d1e8b4fba3e5115b --- libc/include/limits.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libc/include/limits.h b/libc/include/limits.h index a25eb6595..157f7a61f 100644 --- a/libc/include/limits.h +++ b/libc/include/limits.h @@ -138,9 +138,9 @@ #define HOST_NAME_MAX _POSIX_HOST_NAME_MAX -#define _POSIX_VERSION 200809L /* Posix C language bindings version */ -#define _POSIX2_VERSION -1 /* we don't support Posix command-line tools */ -#define _XOPEN_VERSION 700 /* by Posix definition */ +#define _POSIX_VERSION 200809L +#define _POSIX2_VERSION _POSIX_VERSION +#define _XOPEN_VERSION 700 /* by Posix definition */ /* >= _POSIX_THREAD_DESTRUCTOR_ITERATIONS */ #define PTHREAD_DESTRUCTOR_ITERATIONS 4