1. fix a missing socklen_t problem.

This commit is contained in:
dmh 2015-06-17 14:06:51 -06:00
parent 952b73e51e
commit 6f753dacd1
3 changed files with 14 additions and 1 deletions

View File

@ -397,6 +397,10 @@ fi
if test "x$enable_dap" = xyes; then
AC_DEFINE([USE_DAP], [1], [if true, build DAP Client])
AC_DEFINE([ENABLE_DAP], [1], [if true, build DAP Client])
#AC_CHECK_HEADER(sys/socket.h, ,AC_DEFINE([NO_SYS_SOCKET_H], [], [no sys/socket.h]))
#AC_CHECK_HEADER(socket.h, ,AC_DEFINE([NO_SOCKET_H], [], [no socket.h]))
AC_CHECK_HEADERS([sys/socket.h socket.h])
AC_CHECK_TYPES([socklen_t])
fi
if test "x$enable_dap_remote_tests" = xyes; then

View File

@ -19,7 +19,6 @@
#define nullfree(m) {if((m)!=NULL) {free(m);} else {}}
#endif
/* Misc. code controls */
#define FILLCONSTRAINT TRUE

View File

@ -15,6 +15,16 @@
#include <string.h>
#include <stdio.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#elif defined HAVE_SOCKET_H
#include <socket.h>
#endif
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#endif
#include "ncbytes.h"
#include "nclist.h"
#include "nchashmap.h"