Browse Source

fix compilation errors

ahedberg 9 năm trước cách đây
mục cha
commit
799fd4bda6

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