remove typedef from struct recptypes
[citadel.git] / citadel / modules / clamav / serv_virus.c
index ad1a68d2b59343a77af98a44cb97ba9b120409f8..c5599b9de95576ed4b088d42c3dfa962f2c71be9 100644 (file)
 #include <pwd.h>
 #include <errno.h>
 #include <sys/types.h>
-
-#if TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-#  include <sys/time.h>
-# else
-#  include <time.h>
-# endif
-#endif
-
+#include <time.h>
 #include <sys/wait.h>
 #include <string.h>
 #include <limits.h>
@@ -61,7 +50,7 @@
 /*
  * Connect to the clamd server and scan a message.
  */
-int clamd(struct CtdlMessage *msg, recptypes *recp) {
+int clamd(struct CtdlMessage *msg, struct recptypes *recp) {
        int sock = (-1);
        int streamsock = (-1);
        char clamhosts[SIZ];