[patch] build fix for HURD



Hi,

Marcus Brinkmann informed me, that the HURD unlike Linux doesn't have
a fixed limit for PATH_MAX, but the value is used in
gnome/gnome-open-dialog.c

Attached is his patch, maybe there is a more ellegant way to do
this.

Ciao,
        Martin

diff -ruN mc-4.5.54.orig/gnome/gnome-open-dialog.c mc-4.5.54/gnome/gnome-open-dialog.c
--- mc-4.5.54.orig/gnome/gnome-open-dialog.c	Thu Sep 23 02:53:32 1999
+++ mc-4.5.54/gnome/gnome-open-dialog.c	Sun Jul  8 12:39:43 2001
@@ -26,6 +26,10 @@
 #include <string.h>
 #include <unistd.h>
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 static void gnome_open_dialog_init		   (GnomeOpenDialog *open_dialog);
 static void gnome_open_dialog_class_init           (GnomeOpenDialogClass *klass);
 static void gnome_open_dialog_destroy              (GtkObject *object);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]