Bläddra i källkod

fix compilation errors

ahedberg 9 år sedan
förälder
incheckning
799fd4bda6
2 ändrade filer med 2 tillägg och 1 borttagningar
  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]) {}