Bug 826931 (follow-up): fix build break. r=me

1. include netdb.h for |gethostbyname|.
2. link mozipcunixsocket_s whenever MOZ_B2G_RIL is enabled.
This commit is contained in:
Vicamo Yang 2013-02-04 18:56:12 +08:00
parent 54107a6a7a
commit 963acffc9a
2 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,7 @@
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netdb.h> // For gethostbyname.
#undef LOG
#if defined(MOZ_WIDGET_GONK)

View File

@ -113,7 +113,11 @@ STATIC_LIBS += mozril_s
endif #}
ifdef MOZ_B2G_BT #{
STATIC_LIBS += mozdbus_s mozipcunixsocket_s
STATIC_LIBS += mozdbus_s
endif #}
ifneq ($(strip $(MOZ_B2G_RIL)$(MOZ_B2G_BT)),) #{
STATIC_LIBS += mozipcunixsocket_s
endif #}
ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))