[svn] commit: r29 - in /experiments/graff-ccapi/msgq: Makefile msgq.c

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Sep 22 20:58:56 UTC 2009


Author: mgraff
Date: Tue Sep 22 20:58:56 2009
New Revision: 29

Log:
make it compile

Modified:
    experiments/graff-ccapi/msgq/Makefile
    experiments/graff-ccapi/msgq/msgq.c

Modified: experiments/graff-ccapi/msgq/Makefile
==============================================================================
--- experiments/graff-ccapi/msgq/Makefile (original)
+++ experiments/graff-ccapi/msgq/Makefile Tue Sep 22 20:58:56 2009
@@ -13,20 +13,16 @@
 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: Makefile,v 1.7 2002/12/06 21:06:26 lidl Exp $
-
-srcdir= .
-top_srcdir= ../..
-
 OBJS=cc.o msgq.o msgbuf.o
 TARGETS=msgq ${OBJS}
 
-INSTALLDIRS=${prefix}/sbin
 
-include ${top_srcdir}/mk/rules
 
 CFLAGS += ${ISC_CFLAGS} -g
 CFLAGS += -Wall -Wstrict-prototypes
+CFLAGS += `isc-config.sh --cflags isc`
+
+ISC_LIBS += `isc-config.sh --libs isc`
 
 msgq: ${OBJS}
 	${CC} -o msgq ${OBJS} ${ISC_LIBS}
@@ -34,6 +30,3 @@
 msgq.o: msgq.c msgbuf.h cc.h
 msgbuf.o: msgbuf.c msgbuf.h
 cc.o: cc.c cc.h
-
-install:: ${TARGETS}
-	${INSTALL_PROG} msgq ${prefix}/sbin

Modified: experiments/graff-ccapi/msgq/msgq.c
==============================================================================
--- experiments/graff-ccapi/msgq/msgq.c (original)
+++ experiments/graff-ccapi/msgq/msgq.c Tue Sep 22 20:58:56 2009
@@ -1138,7 +1138,7 @@
 						PF_INET, isc_sockettype_tcp,
 						&sock) == ISC_R_SUCCESS);
 		RUNTIME_CHECK(sock != NULL);
-		result = isc_socket_bind(sock, &sa);
+		result = isc_socket_bind(sock, &sa, 0);
 		RUNTIME_CHECK(result == ISC_R_SUCCESS);
 
 		RUNTIME_CHECK(isc_socket_listen(sock, 0) == ISC_R_SUCCESS);




More information about the bind10-changes mailing list