More OSX compatibility changes (why doesn't OSX support basename_r?)

This commit is contained in:
Christopher Ramey 2015-03-07 19:25:17 +00:00 committed by cdramey
parent 52d3e9c8fe
commit 5ec1783299
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@
#define TIMEOUT 30
static char exec_name[MAXPATHLEN];
static char *exec_name;
static int daemonize = 1;
@ -80,7 +80,7 @@ int main(int argc, char* argv[])
struct connection* conns[SLOTLIMIT];
memset(conns, 0, sizeof(struct connection*) * SLOTLIMIT);
if(basename_r(argv[0], exec_name) == NULL){
if((exec_name = basename(argv[0])) == NULL){
fprintf(stderr, "%s: cannot get basename - %s\n",
exec_name, strerror(errno)
);

View File

@ -1 +1 @@
#define VERSION "1.0.0"
#define VERSION "1.0.1"