Oh hai!
build of googletest from svn/trunk fails using musl libc [1] with
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./build-aux -I. -I./include -DGTEST_HAS_PTHREAD=1 -g -O2 -MT src/gtest-all.lo -MD -MP -MF src/.deps/gtest-all.Tpo -c src/gtest-all.cc -fPIC -DPIC -o src/.libs/gtest-all.o
> In file included from src/gtest-all.cc:42:0:
> ./src/gtest.cc: In member function 'void testing::internal::StreamingListener::MakeConnection()':
> ./src/gtest.cc:3399:21: error: 'AF_UNSPEC' was not declared in this scope
> ./src/gtest.cc:3400:23: error: 'SOCK_STREAM' was not declared in this scope
> ./src/gtest.cc:3416:74: error: 'socket' was not declared in this scope
> ./src/gtest.cc:3419:67: error: 'connect' was not declared in this scope
> make: *** [src/gtest-all.lo] Error 1
patch can be found in the attached file (see [2]).
[1]
http://www.musl-libc.org/
[2]
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/socket.h.html
//wbr ojab