net.c: make it compile without ucred
[paraslash.git] / fd.c
diff --git a/fd.c b/fd.c
index 4928850e38d7d01688702d8acb8e898da53e284d..c5a37cdd2a4e5c28437df2fbbf3b44b313ac0636 100644 (file)
--- a/fd.c
+++ b/fd.c
@@ -20,6 +20,7 @@
 
 #include "para.h"
 
+#include <fcntl.h>
 #include <sys/select.h>
 
 #include "error.h"
@@ -97,5 +98,5 @@ int mark_fd_nonblock(int fd)
 void para_fd_set(int fd, fd_set *fds, int *max_fileno)
 {
        FD_SET(fd, fds);
-       *max_fileno = MAX(*max_fileno, fd);
+       *max_fileno = PARA_MAX(*max_fileno, fd);
 }