git-svn: trunk@4774
Török Edvin authored on 2009/02/13 17:41:59... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Fri Feb 13 11:11:03 EET 2009 (edwin) |
|
2 |
+------------------------------------ |
|
3 |
+ * clamd/others.c, clamd/session.c: fdpassing is now in others.c |
|
4 |
+ instead of session.c, move the defines. |
|
5 |
+ |
|
1 | 6 |
Fri Feb 13 10:30:16 EET 2009 (edwin) |
2 | 7 |
------------------------------------ |
3 | 8 |
* clamd/session.c: add missing include |
... | ... |
@@ -24,6 +24,11 @@ |
24 | 24 |
#include "clamav-config.h" |
25 | 25 |
#endif |
26 | 26 |
|
27 |
+#if defined HAVE_FD_PASSING && defined FDPASS_NEED_XOPEN |
|
28 |
+/* to expose BSD 4.4/Unix98 semantics instead of BSD 4.3 semantics */ |
|
29 |
+#define _XOPEN_SOURCE 500 |
|
30 |
+#endif |
|
31 |
+ |
|
27 | 32 |
#include <stdio.h> |
28 | 33 |
#include <stdarg.h> |
29 | 34 |
#include <stdlib.h> |
... | ... |
@@ -74,12 +79,17 @@ |
74 | 74 |
#endif /* HAVE_POLL_H */ |
75 | 75 |
#endif /* HAVE_POLL */ |
76 | 76 |
|
77 |
+#include <limits.h> |
|
77 | 78 |
#include "shared/optparser.h" |
78 | 79 |
#include "shared/output.h" |
79 | 80 |
|
80 | 81 |
#include "session.h" |
81 | 82 |
#include "others.h" |
82 | 83 |
|
84 |
+#ifndef PATH_MAX |
|
85 |
+#define PATH_MAX 1024 |
|
86 |
+#endif |
|
87 |
+ |
|
83 | 88 |
#ifdef C_WINDOWS |
84 | 89 |
void virusaction(const char *filename, const char *virname, const struct optstruct *opts) |
85 | 90 |
{ |
... | ... |
@@ -24,11 +24,6 @@ |
24 | 24 |
#include "clamav-config.h" |
25 | 25 |
#endif |
26 | 26 |
|
27 |
-#if defined HAVE_FD_PASSING && defined FDPASS_NEED_XOPEN |
|
28 |
-/* to expose BSD 4.4/Unix98 semantics instead of BSD 4.3 semantics */ |
|
29 |
-#define _XOPEN_SOURCE 500 |
|
30 |
-#endif |
|
31 |
- |
|
32 | 27 |
#include <stdio.h> |
33 | 28 |
#include <stdlib.h> |
34 | 29 |
#include <string.h> |