Skip to content

Commit 22d56d9

Browse files
committed
native_client: properly detect Linux with glibc to detect what's not
1 parent 8198132 commit 22d56d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/nacl/native_client/src/shared/imc/posix/nacl_imc_posix.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ static int AshmemCreateRegion(size_t size) {
8080
int NaClWouldBlock(void) {
8181
return errno == EAGAIN;
8282
}
83-
8483
int NaClGetLastErrorString(char* buffer, size_t length) {
85-
#if NACL_LINUX && !NACL_ANDROID
84+
#if NACL_LINUX && defined(__GLIBC__)
8685
char* message;
8786
/*
8887
* Note some Linux distributions provide only GNU version of strerror_r().

0 commit comments

Comments
 (0)