diff options
author | cy <cy@FreeBSD.org> | 2012-03-11 03:40:22 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2012-03-11 03:40:22 +0800 |
commit | 9190628926fe28126bd066d5427de14c9eab7af8 (patch) | |
tree | 1158f709ede159d0830be229dcfffad50122b1b9 /ftp | |
parent | 8281d9d1f0a3216e1fdf1489dd37a8efefa36010 (diff) | |
download | freebsd-ports-gnome-9190628926fe28126bd066d5427de14c9eab7af8.tar.gz freebsd-ports-gnome-9190628926fe28126bd066d5427de14c9eab7af8.tar.zst freebsd-ports-gnome-9190628926fe28126bd066d5427de14c9eab7af8.zip |
Fix issue with select().
Feature safe: yes
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/llnlxdir/Makefile | 2 | ||||
-rw-r--r-- | ftp/llnlxdir/files/patch-local.c | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/ftp/llnlxdir/Makefile b/ftp/llnlxdir/Makefile index 1eab4636fb85..c664844df560 100644 --- a/ftp/llnlxdir/Makefile +++ b/ftp/llnlxdir/Makefile @@ -7,7 +7,7 @@ PORTNAME= llnlxdir PORTVERSION= 2.1.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= ftp MASTER_SITES= https://computing.llnl.gov/resources/xdir/ DISTNAME= llnlxdir2_1_2 diff --git a/ftp/llnlxdir/files/patch-local.c b/ftp/llnlxdir/files/patch-local.c new file mode 100644 index 000000000000..636fa064d3a2 --- /dev/null +++ b/ftp/llnlxdir/files/patch-local.c @@ -0,0 +1,18 @@ +--- local.c.orig 1999-11-22 16:07:32.000000000 -0800 ++++ local.c 2012-03-10 11:13:59.817174472 -0800 +@@ -193,11 +193,14 @@ + #ifdef _SC_OPEN_MAX /* POSIX */ + if ((max_files = sysconf(_SC_OPEN_MAX)) == -1) + fatal_error("Trouble in max_fds() - sysconf() failed"); ++ if (max_files > 1024) ++ max_files=1024; + #else + #ifdef _NFILE /* Might be overkill */ + max_files = _NFILE; + #else /* Assume BSD */ +- max_files = getdtablesize(); ++ if ((max_files = getdtablesize()) > 1024) ++ max_files=1024; + #endif + #endif + |