summaryrefslogtreecommitdiff
path: root/lib/progreloc.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-01-17 09:24:00 +0100
committerBruno Haible <bruno@clisp.org>2009-01-17 09:24:00 +0100
commitf3ca432df308842637feef2ae3da0cd37acd4ddd (patch)
tree71e62804099858afe0bfc8d7ea6edf75d89d2966 /lib/progreloc.c
parente4a3cd42ac25523ff21fa076f6d62e3e0ac31980 (diff)
downloadgnulib-f3ca432df308842637feef2ae3da0cd37acd4ddd.tar.gz
Update use of API that has changed in MacOS X 10.4.
Diffstat (limited to 'lib/progreloc.c')
-rw-r--r--lib/progreloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/progreloc.c b/lib/progreloc.c
index 0eaad38559..a79ef7a2c9 100644
--- a/lib/progreloc.c
+++ b/lib/progreloc.c
@@ -1,5 +1,5 @@
/* 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
@@ -196,10 +196,10 @@ find_executable (const char *argv0)
#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);