Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
2b901236
Commit
2b901236
authored
8 years ago
by
Nicolas Noble
Browse files
Options
Downloads
Plain Diff
Merge pull request #5943 from vjpai/make_unix_sockets_great_again
Fix the unix socket #ifdef in init.c
parents
7894e603
d0facace
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/lib/iomgr/unix_sockets_posix_noop.c
+6
-1
6 additions, 1 deletion
src/core/lib/iomgr/unix_sockets_posix_noop.c
src/core/lib/surface/init.c
+1
-1
1 addition, 1 deletion
src/core/lib/surface/init.c
with
7 additions
and
2 deletions
src/core/lib/iomgr/unix_sockets_posix_noop.c
+
6
−
1
View file @
2b901236
...
@@ -35,7 +35,12 @@
...
@@ -35,7 +35,12 @@
#ifndef GPR_HAVE_UNIX_SOCKET
#ifndef GPR_HAVE_UNIX_SOCKET
void
grpc_create_socketpair_if_unix
(
int
sv
[
2
])
{}
void
grpc_create_socketpair_if_unix
(
int
sv
[
2
])
{
// TODO: Either implement this for the non-Unix socket case or make
// sure that it is never called in any such case. Until then, leave an
// assertion to notify if this gets called inadvertently
GPR_ASSERT
(
0
);
}
grpc_resolved_addresses
*
grpc_resolve_unix_domain_address
(
const
char
*
name
)
{
grpc_resolved_addresses
*
grpc_resolve_unix_domain_address
(
const
char
*
name
)
{
return
NULL
;
return
NULL
;
...
...
This diff is collapsed.
Click to expand it.
src/core/lib/surface/init.c
+
1
−
1
View file @
2b901236
...
@@ -172,7 +172,7 @@ void grpc_init(void) {
...
@@ -172,7 +172,7 @@ void grpc_init(void) {
grpc_register_resolver_type
(
grpc_dns_resolver_factory_create
());
grpc_register_resolver_type
(
grpc_dns_resolver_factory_create
());
grpc_register_resolver_type
(
grpc_ipv4_resolver_factory_create
());
grpc_register_resolver_type
(
grpc_ipv4_resolver_factory_create
());
grpc_register_resolver_type
(
grpc_ipv6_resolver_factory_create
());
grpc_register_resolver_type
(
grpc_ipv6_resolver_factory_create
());
#ifdef GPR_
POS
IX_SOCKET
#ifdef GPR_
HAVE_UN
IX_SOCKET
grpc_register_resolver_type
(
grpc_unix_resolver_factory_create
());
grpc_register_resolver_type
(
grpc_unix_resolver_factory_create
());
#endif
#endif
grpc_register_tracer
(
"api"
,
&
grpc_api_trace
);
grpc_register_tracer
(
"api"
,
&
grpc_api_trace
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment