Browse code

properly define NAME_MAX on non-compatible systems

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1405 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2005/03/19 00:28:55
Showing 4 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Mar 18 16:26:18 CET 2005 (tk)
2
+---------------------------------
3
+  * libclamav: properly define NAME_MAX on non-compatible systems
4
+
1 5
 Fri Mar 18 13:48:40 GMT 2005 (trog)
2 6
 -----------------------------------
3 7
   * clamd/scanner.c: fix ports scan loop
... ...
@@ -62,6 +62,8 @@ pthread_mutex_t cli_gentemp_mutex = PTHREAD_MUTEX_INITIALIZER;
62 62
 # else
63 63
 #   ifdef	FILENAME_MAX	/* e.g. SCO */
64 64
 #     define	NAME_MAX	FILENAME_MAX
65
+#   else
66
+#     define	NAME_MAX	256
65 67
 #   endif
66 68
 # endif
67 69
 #endif
... ...
@@ -52,6 +52,8 @@
52 52
 # else
53 53
 #   ifdef	FILENAME_MAX	/* e.g. SCO */
54 54
 #     define	NAME_MAX	FILENAME_MAX
55
+#   else
56
+#     define	NAME_MAX	256
55 57
 #   endif
56 58
 # endif
57 59
 #endif
... ...
@@ -91,6 +91,8 @@ extern int cli_mbox(const char *dir, int desc, unsigned int options); /* FIXME *
91 91
 # else
92 92
 #   ifdef	FILENAME_MAX	/* e.g. SCO */
93 93
 #     define	NAME_MAX	FILENAME_MAX
94
+#   else
95
+#     define	NAME_MAX	256
94 96
 #   endif
95 97
 # endif
96 98
 #endif