diff options
author | Paul Joseph Davis <davisp@apache.org> | 2011-10-23 12:27:35 -0500 |
---|---|---|
committer | Paul Joseph Davis <davisp@apache.org> | 2011-10-23 12:38:54 -0500 |
commit | af7a6ae52890c6c158615068f2a48d40c52ec538 (patch) | |
tree | 83efeef2dd1dc2ae9f2e857b0fc7ede0ecef2e56 /src/couchdb/priv/couch_js | |
parent | 89f7faa6d09248999fb51ffd2a13777168f51805 (diff) |
Hardcode couchjs binary name
Windows doesn't have the libgen.h header or an easily identified
basename function. Instead of playing games we just configure the name
with autoconf and run with that.
Diffstat (limited to 'src/couchdb/priv/couch_js')
-rw-r--r-- | src/couchdb/priv/couch_js/help.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/couchdb/priv/couch_js/help.h b/src/couchdb/priv/couch_js/help.h index c42c9f59..41025942 100644 --- a/src/couchdb/priv/couch_js/help.h +++ b/src/couchdb/priv/couch_js/help.h @@ -13,8 +13,6 @@ #ifndef COUCHJS_HELP_H #define COUCHJS_HELP_H -#include <libgen.h> - #include "config.h" static const char VERSION_TEMPLATE[] = @@ -55,7 +53,7 @@ static const char USAGE_TEMPLATE[] = "\n" "Report bugs at <%s>.\n"; -#define BASENAME basename((char*)argv[0]) +#define BASENAME COUCHJS_NAME #define couch_version(basename) \ fprintf( \ |