An `ambiguous else' warning from some compilers in types.c is removed.
* Include <sys/times.h> in a few more files.
* Include <unistd.h> and <sys/time.h> for select.
* Look for inet_aton and inet_ntoa (in -lnsl and -lsocket).
-
- Portability fixes to regression test:
- * Regression test doesn't rely on value of O_NONBLOCK and other flags.
+ * Regression test doesn't rely on value of fcntl flags eg O_NONBLOCK.
+ * LDLIBS removed from dependency lists (some makes don't support this).
+ * An `ambiguous else' warning from some compilers in types.c is removed.
Other changes:
* Added COPYING (copy of the GPL).
sendto recvfrom read write writev \
, -D$F=H$F)
-HARNLOBJS= $(addsuffix _d.o, $(basename $(LIBOBJS))) $(LDLIBS)
+HARNLOBJS= $(addsuffix _d.o, $(basename $(LIBOBJS)))
ALLOBJS= $(HARNLOBJS) dtest.o hrecord.o hplayback.o hcommon.o
.PRECIOUS: $(AUTOCSRCS)
#include "internal.h"
#define R_NOMEM return adns_s_nomemory
-#define CSP_ADDSTR(s) if (!adns__vbuf_appendstr(vb,(s))) R_NOMEM; else;
+#define CSP_ADDSTR(s) do { if (!adns__vbuf_appendstr(vb,(s))) R_NOMEM; } while (0)
/*
* order of sections: