+2009-01-17 Bruno Haible <bruno@clisp.org>
+
+ Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
+ * lib/progreloc.c (find_executable): Fix type of pointer passed to
+ _NSGetExecutablePath.
+
2009-01-16 Jim Meyering <meyering@redhat.com>
strerror: avoid warnings about discarding "const"
/* Provide relocatable programs.
- Copyright (C) 2003-2008 Free Software Foundation, Inc.
+ Copyright (C) 2003-2009 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
#endif
#if HAVE_MACH_O_DYLD_H && HAVE__NSGETEXECUTABLEPATH
/* On MacOS X 10.2 or newer, the function
- int _NSGetExecutablePath (char *buf, unsigned long *bufsize);
+ int _NSGetExecutablePath (char *buf, uint32_t *bufsize);
can be used to retrieve the executable's full path. */
char location[4096];
- unsigned long length = sizeof (location);
+ unsigned int length = sizeof (location);
if (_NSGetExecutablePath (location, &length) == 0
&& location[0] == '/')
return canonicalize_file_name (location);