View | Details | Raw Unified | Return to ticket 1117 | Differences between
and this patch

Collapse All | Expand All

(-)a/configure.ac (+1 lines)
Lines 200-205 AC_CHECK_FUNCS( \ Link Here
200
   sysctlbyname \
200
   sysctlbyname \
201
   cfmakeraw \
201
   cfmakeraw \
202
   setresuid \
202
   setresuid \
203
   get_current_dir_name \
203
)
204
)
204
205
205
AC_CHECK_DECLS([hstrerror, strsignal, sys_siglist])
206
AC_CHECK_DECLS([hstrerror, strsignal, sys_siglist])
(-)a/src/common/util-net.c (-1 / +6 lines)
Lines 47-52 Link Here
47
#include <arpa/inet.h>
47
#include <arpa/inet.h>
48
#include <assert.h>
48
#include <assert.h>
49
#include <errno.h>
49
#include <errno.h>
50
#include <limits.h>	/* for PATH_MAX */
50
#include <netdb.h>
51
#include <netdb.h>
51
#include <netinet/in.h>
52
#include <netinet/in.h>
52
#include <pthread.h>
53
#include <pthread.h>
Lines 395-401 extern char *make_full_path(char *rpath) Link Here
395
	char *cwd2;
396
	char *cwd2;
396
	int len;
397
	int len;
397
398
398
	cwd =  get_current_dir_name();
399
#ifdef HAVE_GET_CURRENT_DIR_NAME
400
	cwd = get_current_dir_name();
401
#else
402
	cwd = getcwd(NULL, PATH_MAX);
403
#endif
399
	/* 2 = / + 0
404
	/* 2 = / + 0
400
	 */
405
	 */
401
	len = strlen(cwd) + strlen(rpath) + 2;
406
	len = strlen(cwd) + strlen(rpath) + 2;

Return to ticket 1117