]> git.pld-linux.org Git - packages/xinetd.git/blob - xinetd-howl.patch
rel 3
[packages/xinetd.git] / xinetd-howl.patch
1 --- xinetd-2.3.14/configure.in.orig     2005-03-31 01:15:28.000000000 +0200
2 +++ xinetd-2.3.14/configure.in  2006-03-12 12:10:15.375690250 +0100
3 @@ -52,12 +52,10 @@
4  AC_ARG_WITH(howl, [  --with-howl=PATH        Compile in howl support.  
5                            PATH is the prefix where howl is installed,
6                            and is not optional.],
7 -   [ OLDCFLAGS=$CFLAGS; CFLAGS="-I$withval/include/howl/ $CFLAGS"; 
8 -     OLDLDFLAGS=$LDFLAGS; LDFLAGS="-L$withval/lib/ $LDFLAGS"; 
9 -     OLDCPPFLAGS=$CPPFLAGS; CPPFLAGS="-I$withval/include/howl/ $CPPFLAGS";
10 -     AC_CHECK_HEADER($withval/include/howl/howl.h, 
11 +   [ OLDCFLAGS=$CFLAGS; CFLAGS="`pkg-config --cflags howl` $CFLAGS"; 
12 +     AC_CHECK_HEADER(howl.h, 
13          [AC_DEFINE(HAVE_HOWL) AC_DEFINE(HAVE_MDNS)], 
14 -        [CFLAGS=$OLDCFLAGS; LDFLAGS=$OLDLDFLAGS; CPPFLAGS=$OLDCPPFLAGS;]) 
15 +        [CFLAGS=$OLDCFLAGS;]) 
16       AC_CHECK_LIB(howl, sw_discovery_publish, [LIBS="-lhowl $LIBS"], [
17          OLDLIBS=$LIBS; LIBS="-lpthread $LIBS"; 
18          AC_CHECK_LIB(howl, main, [LIBS="-lhowl $LIBS"],
19 --- xinetd-2.3.14/xinetd/xmdns.c.orig   2005-04-08 23:23:07.000000000 +0200
20 +++ xinetd-2.3.14/xinetd/xmdns.c        2006-03-12 12:40:36.541506000 +0100
21 @@ -139,7 +139,7 @@
22  
23  int xinetd_mdns_poll(void) {
24  #ifdef HAVE_HOWL
25 -   if( sw_discovery_read_socket(*(sw_discovery *)ps.rws.mdns_state) == SW_OKAY )
26 +   if(ps.rws.mdns_state && (sw_discovery_read_socket(*(sw_discovery *)ps.rws.mdns_state) == SW_OKAY))
27        return 0;
28  #endif
29     return -1;
This page took 0.117923 seconds and 3 git commands to generate.