diff options
author | 2016-03-22 13:47:46 -0400 | |
---|---|---|
committer | 2016-03-22 13:47:46 -0400 | |
commit | 799fd4bda6e011bcb6dbfce02d8b34a1d9a06736 (patch) | |
tree | 3863bdab42581ac9fddff599484f38443810304f /src | |
parent | fcbcbff290d359746670ae80be27a6e683eb0b12 (diff) |
fix compilation errors
Diffstat (limited to 'src')
-rw-r--r-- | src/core/iomgr/unix_sockets_posix.c | 1 | ||||
-rw-r--r-- | src/core/iomgr/unix_sockets_posix_noop.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/core/iomgr/unix_sockets_posix.c b/src/core/iomgr/unix_sockets_posix.c index 035b55fa69..8ff474c6d4 100644 --- a/src/core/iomgr/unix_sockets_posix.c +++ b/src/core/iomgr/unix_sockets_posix.c @@ -35,6 +35,7 @@ #ifdef GPR_HAVE_UNIX_SOCKET +#include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/un.h> diff --git a/src/core/iomgr/unix_sockets_posix_noop.c b/src/core/iomgr/unix_sockets_posix_noop.c index 768131581f..4c41cf5efa 100644 --- a/src/core/iomgr/unix_sockets_posix_noop.c +++ b/src/core/iomgr/unix_sockets_posix_noop.c @@ -34,7 +34,7 @@ #include "src/core/iomgr/unix_sockets_posix.h" -#ifdef GPR_POSIX_SOCKET +#ifndef GPR_HAVE_UNIX_SOCKET void grpc_create_socketpair_if_unix(int sv[2]) {} |