From: ian Date: Wed, 12 May 1999 22:00:04 +0000 (+0000) Subject: LDLIBS removed from dependency lists (some makes don't support this). X-Git-Tag: rel-adns-0-2~6 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=commitdiff_plain;h=053b9ec6b3baf06c69318d6864e78417979eb78c LDLIBS removed from dependency lists (some makes don't support this). An `ambiguous else' warning from some compilers in types.c is removed. --- diff --git a/changelog b/changelog index 31429b0..bb54f97 100644 --- a/changelog +++ b/changelog @@ -8,9 +8,9 @@ adns (0.2) experimental; urgency=low * Include in a few more files. * Include and 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). diff --git a/regress/Makefile.in b/regress/Makefile.in index 9a249c2..2055f08 100644 --- a/regress/Makefile.in +++ b/regress/Makefile.in @@ -32,7 +32,7 @@ HCPPFLAGS:= $(foreach F, \ 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) diff --git a/src/types.c b/src/types.c index c1d613a..2e1291a 100644 --- a/src/types.c +++ b/src/types.c @@ -31,7 +31,7 @@ #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: