~trond-norbye/libmemcached/compile-fixes

Viewing all changes in revision 953.

  • Committer: Trond Norbye
  • Date: 2011-07-29 08:05:31 UTC
  • Revision ID: trond.norbye@gmail.com-20110729080531-3fgbqg3urust2sor
Include <netdb.h> in server.h

The server structure use the constant NI_MAXHOST, and we shouldn't force
clients of libmemcached to include other headerfiles in order to include
libmemcached/memcached.h

Windows is a bit special here, because there you might want to include
winsock.h or winsock2.h etc. To avoid problems for windows users by
including "the wrong" header file for their application, let them deal
with it themselves.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: