X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdatabase.c;h=90697916baade13ba875e618b41fc7324a64a373;hb=67ebd94d4bd94b8ade005dfa371638e0855f84d1;hp=1484427e44fdb2010290c8385a94f26365694cef;hpb=e107b0011a295ccc61502d6e5ea79d9125a3fbb4;p=pazpar2-moved-to-github.git diff --git a/src/database.c b/src/database.c index 1484427..9069791 100644 --- a/src/database.c +++ b/src/database.c @@ -17,6 +17,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif + #include #include #include @@ -28,15 +32,20 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "pazpar2.h" #include "host.h" -#include "config.h" #include "settings.h" #include "http.h" #include "zeerex.h" #include +#if HAVE_SYS_SOCKET_H #include +#endif +#if HAVE_NETDB_H #include +#endif +#if HAVE_NETINET_IN_H #include +#endif static struct host *hosts = 0; // The hosts we know about static struct database *databases = 0; // The databases we know about