don't use EXIT_SUCCESS if <stdlib.h> is not included;

include <sys/select.h> only if needed for fd_set (bb #452)


git-svn: trunk@3604
remotes/push_mirror/metadata
Török Edvin 18 years ago
parent ed9753e99d
commit e1bb690579
  1. 7
      ChangeLog
  2. 6
      configure
  3. 6
      configure.in

@ -1,3 +1,10 @@
Sun Feb 10 10:28:55 EET 2008 (edwin)
------------------------------------
* configure, configure.in: don't use EXIT_SUCCESS if <stdlib.h> is not
included;
include <sys/select.h> only if needed for fd_set
(bb #452)
Fri Feb 8 20:16:45 CET 2008 (tk)
---------------------------------
* libclamac/readdb.c: add support for signature whitelisting with

6
configure vendored

@ -18233,8 +18233,12 @@ cat >>conftest.$ac_ext <<_ACEOF
#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <errno.h>
int main(void) {
FILE *fp = fopen("conftestval", "w");
@ -18247,7 +18251,7 @@ int main(void) {
perror("fopen failed");
return errno;
}
return EXIT_SUCCESS;
return 0;
}
_ACEOF

@ -1349,8 +1349,12 @@ AC_TRY_RUN([
#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <errno.h>
int main(void) {
FILE *fp = fopen("conftestval", "w");
@ -1363,7 +1367,7 @@ int main(void) {
perror("fopen failed");
return errno;
}
return EXIT_SUCCESS;
return 0;
}
],
DEFAULT_FD_SETSIZE=`cat conftestval`,

Loading…
Cancel
Save