X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fjavaexec.c;h=eb40d2bd92b593be695b149a26725a04037b17fd;hb=dd6ceef65e424d30db8706273f88c20b015012ce;hp=2f9376e3e585db4cf1d46237f85a5539aaa3abe3;hpb=f402ab51f72d1c9215e06e2d11a36e16513677c7;p=gnulib.git diff --git a/lib/javaexec.c b/lib/javaexec.c index 2f9376e3e..eb40d2bd9 100644 --- a/lib/javaexec.c +++ b/lib/javaexec.c @@ -1,5 +1,5 @@ /* Execute a Java program. - Copyright (C) 2001-2003 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify @@ -14,11 +14,9 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include /* Specification. */ @@ -32,7 +30,7 @@ #include "classpath.h" #include "xsetenv.h" #include "sh-quote.h" -#include "pathname.h" +#include "filename.h" #include "xalloc.h" #include "xallocsa.h" #include "error.h" @@ -97,7 +95,7 @@ execute_java_class (const char *class_name, /* First, try a class compiled to a native code executable. */ if (exe_dir != NULL) { - char *exe_pathname = concatenated_pathname (exe_dir, class_name, EXEEXT); + char *exe_pathname = concatenated_filename (exe_dir, class_name, EXEEXT); char *old_classpath; char **argv = (char **) xallocsa ((1 + nargs + 1) * sizeof (char *)); unsigned int i; @@ -360,8 +358,8 @@ execute_java_class (const char *class_name, } } -#if defined _WIN32 || defined __WIN32__ - /* Win32 */ +#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ + /* Win32, Cygwin */ { static bool jview_tested; static bool jview_present;