Commit 9f2f3bb1 authored by Kai Vehmanen's avatar Kai Vehmanen

Allow test_nta.c to be built without dirent.h interface.

darcs-hash:20060908091429-7659e-f05fcc54890a77d71c32b7f6e7fd6e8aec5c3c3e.gz
parent c2c58cce
......@@ -649,10 +649,13 @@ int readfile(FILE *f, void **contents)
return len;
}
#if HAVE_DIRENT_H
#include <dirent.h>
#endif
static int test_bad_messages(agent_t *ag)
{
#if HAVE_DIRENT_H
DIR *dir;
struct dirent *d;
char name[PATH_MAX + 1] = "../sip/tests/";
......@@ -748,6 +751,9 @@ static int test_bad_messages(agent_t *ag)
nta_leg_destroy(ag->ag_default_leg), ag->ag_default_leg = NULL;
END();
#else
return 0;
#endif /* HAVE_DIRENT_H */
}
static unsigned char const code[] =
......
......@@ -127,7 +127,7 @@ esac
AC_CHECK_HEADERS([unistd.h sys/time.h])
AC_CHECK_HEADERS([fcntl.h])
AC_CHECK_HEADERS([fcntl.h dirent.h])
AC_CHECK_HEADERS([winsock2.h], [
AC_DEFINE([HAVE_WIN32], 1, [Define to 1 you have WIN32])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment