Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64207 - trunk/tools/build/v2/engine/src
From: ghost_at_[hidden]
Date: 2010-07-20 15:18:07


Author: vladimir_prus
Date: 2010-07-20 15:18:06 EDT (Tue, 20 Jul 2010)
New Revision: 64207
URL: http://svn.boost.org/trac/boost/changeset/64207

Log:
Compile on cygwin.

Text files modified:
   trunk/tools/build/v2/engine/src/jam.c | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: trunk/tools/build/v2/engine/src/jam.c
==============================================================================
--- trunk/tools/build/v2/engine/src/jam.c (original)
+++ trunk/tools/build/v2/engine/src/jam.c 2010-07-20 15:18:06 EDT (Tue, 20 Jul 2010)
@@ -569,7 +569,7 @@
 
 #if defined(_WIN32)
 #include <windows.h>
-char *executable_path(char *arvg0) {
+char *executable_path(char *argv0) {
     char buf[1024];
     DWORD ret = GetModuleFileName(NULL, buf, sizeof(buf));
     if (ret == 0 || ret == sizeof(buf)) return NULL;
@@ -577,7 +577,7 @@
 }
 #elif defined(__APPLE__) /* Not tested */
 #include <mach-o/dyld.h>
-char *executable_path(char *arvg0) {
+char *executable_path(char *argv0) {
     char buf[1024];
     uint32_t size = sizeof(buf);
     int ret = _NSGetExecutablePath(buf, &size);
@@ -587,12 +587,12 @@
 #elif defined(sun) || defined(__sun) /* Not tested */
 #include <stdlib.h>
 
-char *executable_path(char *arvg0) {
+char *executable_path(char *argv0) {
     return strdup(getexecname());
 }
 #elif defined(__FreeBSD__)
 #include <sys/sysctl.h>
-char *executable_path(char *arvg0) {
+char *executable_path(char *argv0) {
     int mib[4];
     mib[0] = CTL_KERN;
     mib[1] = KERN_PROC;
@@ -606,14 +606,14 @@
 }
 #elif defined(__linux__)
 #include <unistd.h>
-char *executable_path(char *arvg0) {
+char *executable_path(char *argv0) {
     char buf[1024];
     ssize_t ret = readlink("/proc/self/exe", buf, sizeof(buf));
     if (ret == 0 || ret == sizeof(buf)) return NULL;
     return strndup(buf, ret);
 }
 #else
-char *executable_path(char *arvg0) {
+char *executable_path(char *argv0) {
     /* If argv0 is absolute path, assume it's the right absolute path. */
     if (argv0[0] == "/")
         return strdup(argv0);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk