Subject: [2.0.45-almost] portability fixes of FvwmIconMan

From: Makoto MATSUSHITA <[email-masked]>
Date: Wed, 22 Jan 1997 21:51:39 +0900

Please add following patch to working source code before 2.0.45 comes
out, for portability fix of FvwmIconMan. It uses sysconf().

--- modules/FvwmIconMan/FvwmIconMan.c.dist	Thu Oct 17 03:12:09 1996
+++ modules/FvwmIconMan/FvwmIconMan.c	Thu Jan 16 21:00:32 1997
@@ -6,6 +6,7 @@
 #else
 #include "../../fvwm/module.h"
 #endif
+#include "../../libs/fvwmlib.h"
 
 static int fd_width;
 static FILE *console = NULL;
@@ -211,7 +212,7 @@
   read_in_resources (argv[3]);
   
   assert (globals.managers);
-  fd_width = sysconf(_SC_OPEN_MAX);
+  fd_width = GetFdWidth();
 
   SetMessageMask(Fvwm_fd,M_CONFIGURE_WINDOW | M_RES_CLASS | M_RES_NAME |
                  M_ADD_WINDOW | M_DESTROY_WINDOW | M_ICON_NAME |

-- -
Makoto `MAR_kun' MATSUSHITA
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked].