remove duplicate code, and fix build error (bb #1034)

git-svn: trunk@3859
remotes/push_mirror/metadata
Török Edvin 17 years ago
parent 85700357c3
commit cb4e478c1a
  1. 5
      ChangeLog
  2. 2
      clamd/session.c
  3. 12
      configure
  4. 8
      m4/fdpassing.m4

@ -1,3 +1,8 @@
Sat May 24 21:38:47 EEST 2008 (edwin)
-------------------------------------
* clamd/others.c, session.c, m4/fdpassing.m4:
remove duplicate code, and fix build error (bb #1034)
Wed May 21 15:51:32 CEST 2008 (tk)
----------------------------------
* freshclam/fresclam.c: don't call daemonize() under w32 (bb#1002)

@ -41,8 +41,10 @@
#include <sys/socket.h>
#ifdef HAVE_FD_PASSING
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
#endif
#include <sys/time.h>
#endif

12
configure vendored

@ -18771,9 +18771,13 @@ cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#define _XOPEN_SOURCE 500
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <sys/socket.h>
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
int
main ()
@ -18850,13 +18854,17 @@ cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
#include <signal.h>
#include <sys/socket.h>
@ -19026,13 +19034,17 @@ cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#define _XOPEN_SOURCE 500
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
#include <signal.h>
#include <sys/socket.h>

@ -2,13 +2,17 @@
AC_DEFUN([CONFTEST_FDPASS],[[
AC_LANG_SOURCE([[
$1
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
#include <signal.h>
#include <sys/socket.h>
@ -140,9 +144,13 @@ AC_CACHE_CHECK([for msg_control field in struct msghdr],
AC_TRY_COMPILE(
[
#define _XOPEN_SOURCE 500
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <sys/socket.h>
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
],
[
#ifdef msg_control

Loading…
Cancel
Save