portability fix for clamd_fdscan

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

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

@ -1,6 +1,6 @@
#!/bin/sh
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
exit $1
}

Loading…
Cancel
Save