Browse Source

fix compilation errors

ahedberg 9 years ago
parent
commit
799fd4bda6
2 changed files with 2 additions and 1 deletions
  1. 1 0
      src/core/iomgr/unix_sockets_posix.c
  2. 1 1
      src/core/iomgr/unix_sockets_posix_noop.c

+ 1 - 0
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>

+ 1 - 1
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]) {}