mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
1. fix a missing socklen_t problem.
This commit is contained in:
parent
952b73e51e
commit
6f753dacd1
@ -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
|
||||
|
@ -19,7 +19,6 @@
|
||||
#define nullfree(m) {if((m)!=NULL) {free(m);} else {}}
|
||||
#endif
|
||||
|
||||
|
||||
/* Misc. code controls */
|
||||
#define FILLCONSTRAINT TRUE
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user