... | ... |
@@ -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; |