More OSX compatibility changes (why doesn't OSX support basename_r?)
This commit is contained in:
		@ -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)
 | 
			
		||||
		);
 | 
			
		||||
 | 
			
		||||
@ -1 +1 @@
 | 
			
		||||
#define VERSION "1.0.0"
 | 
			
		||||
#define VERSION "1.0.1"
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user