[gnome-commander/gcmd-1-3] Fixed problem #604904 (build error on Solaris)



commit d3ce2d07c50423c7e69cd9ba85e5aabb715b4aa7
Author: Padraig O'Briain <Padraig Obriain Sun COM>
Date:   Fri Dec 18 18:51:33 2009 +0100

    Fixed problem #604904 (build error on Solaris)

 src/gnome-cmd-advrename-lexer.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-advrename-lexer.h b/src/gnome-cmd-advrename-lexer.h
index 381745d..4a0dbca 100644
--- a/src/gnome-cmd-advrename-lexer.h
+++ b/src/gnome-cmd-advrename-lexer.h
@@ -23,6 +23,10 @@
 
 #include "gnome-cmd-file.h"
 
+#ifndef NAME_MAX
+#define NAME_MAX (FILENAME_MAX)
+#endif
+
 void gnome_cmd_advrename_reset_counter(long start=1, int precision=-1, int step=1);
 void gnome_cmd_advrename_parse_template(const char *template_string, gboolean &has_counters);
 char *gnome_cmd_advrename_gen_fname(GnomeCmdFile *f, size_t new_fname_size=NAME_MAX);



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