Make it build and fix tests in cygwin

This commit is contained in:
Erik Ekman
2009-01-24 16:39:05 +00:00
committed by Erik Ekman
parent 352d75131f
commit 97bf71e944
8 changed files with 77 additions and 3 deletions

View File

@@ -23,5 +23,5 @@ $(TEST): $(OBJS) $(SRCOBJS)
clean:
@echo "Cleaning tests/"
@rm -f *~ *.core $(TEST) $(OBJS)
@rm -f *~ *.core $(TEST){,exe} $(OBJS)

View File

@@ -23,7 +23,11 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/stat.h>
#ifndef __CYGWIN__
#include <arpa/nameser.h>
#else
#include "windows.h"
#endif
#include "common.h"
#include "dns.h"

View File

@@ -18,7 +18,11 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/stat.h>
#ifndef __CYGWIN__
#include <arpa/nameser.h>
#else
#include "windows.h"
#endif
#ifdef DARWIN
#include <arpa/nameser8_compat.h>
#endif