Browse code

configure: check for enable_extended_FILE_stdio (bb #2542)

Török Edvin authored on 2011/04/14 19:18:54
Showing 3 changed files
... ...
@@ -1,3 +1,7 @@
1
+Thu Apr 14 13:19:38 EEST 2011 (edwin)
2
+-------------------------------------
3
+ * configure: check for enable_extended_FILE_stdio (bb #2542)
4
+
1 5
 Mon Apr 11 17:22:46 CEST 2011 (tk)
2 6
 ----------------------------------
3 7
  * libclamav: add basic GIF validator
... ...
@@ -963,7 +963,7 @@ int recvloop_th(int *socketds, unsigned nsockets, struct cl_engine *engine, unsi
963 963
 	 * CLAMDFILES is 6: 3 standard FD + logfile + 2 FD for reloading the DB
964 964
 	 * */
965 965
 #ifdef C_SOLARIS
966
-#ifdef F_BADFD
966
+#ifdef HAVE_ENABLE_EXTENDED_FILE_STDIO
967 967
 	if (enable_extended_FILE_stdio(-1, -1) == -1) {
968 968
 	    logg("^Unable to set extended FILE stdio, clamd will be limited to max 256 open files\n");
969 969
 	    rlim.rlim_cur = rlim.rlim_cur > 255 ? 255 : rlim.rlim_cur;
... ...
@@ -1167,6 +1167,8 @@ then
1167 1167
     AC_DEFINE([_REENTRANT],1,[thread safe])
1168 1168
 fi
1169 1169
 
1170
+AC_CHECK_FUNCS([enable_extended_FILE_stdio])
1171
+
1170 1172
 dnl Check for readdir_r and number of its arguments
1171 1173
 dnl Code from libwww/configure.in
1172 1174