portability fix for clamd_fdscan

git-svn: trunk@4081
remotes/push_mirror/0.95
Török Edvin 18 years ago
parent c1a133a07b
commit b4965c4861
  1. 5
      clamdscan/clamd_fdscan.c
  2. 2
      unit_tests/check_clamd.sh

@ -21,6 +21,10 @@
#endif #endif
#ifdef HAVE_FD_PASSING #ifdef HAVE_FD_PASSING
#ifdef FDPASS_NEED_XOPEN
#define _XOPEN_SOURCE 500
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/un.h> #include <sys/un.h>
@ -28,7 +32,6 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <err.h>
#include <unistd.h> #include <unistd.h>
#include "clamd_fdscan.h" #include "clamd_fdscan.h"

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
die() { die() {
test -f /tmp/clamd-test.pid && kill `cat /tmp/clamd-test.pid` test /tmp/clamd-test.pid && kill -0 `cat /tmp/clamd-test.pid` && kill `cat /tmp/clamd-test.pid`
rm -rf test-db test-clamd-viraction.conf test-clamd.log test-clamd-heur-pred.conf clamd-test.socket rm -rf test-db test-clamd-viraction.conf test-clamd.log test-clamd-heur-pred.conf clamd-test.socket
exit $1 exit $1
} }

Loading…
Cancel
Save