Browse Source

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

master
Christopher Ramey 9 years ago
committed by cdramey
parent
commit
5ec1783299
  1. 4
      src/wstationd.c
  2. 2
      src/wstationd.h

4
src/wstationd.c

@ -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)
);

2
src/wstationd.h

@ -1 +1 @@
#define VERSION "1.0.0"
#define VERSION "1.0.1"
Loading…
Cancel
Save