mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-12 11:40:39 +03:00
Makefile.am: include coap_tcp_internal.h in EXTRA_DIST libcoap-2.map libcoap-2.sym: Don't expose previously static coap_socket_format_errno(). src/coap_gnutls.c: src/coap_openssl.c: src/coap_tinydtls.c: Correct ENABLE_TCP (never defined) to !COAP_DISABLE_TCP. Conditionally compile in TLS code as appropriate. src/coap_io.c: Correct #endif description. src/coap_session.c: Conditionally compile in TLS code as appropriate. src/coap_tcp.c Merge in appropriate parts of https://github.com/obgm/libcoap/pull/396 and https://github.com/obgm/libcoap/pull/345 fixes. include/coap2/coap_tcp.h: include/coap2/coap_tcp_internal.h: Rename include/coap2/coap_tcp.h to include/coap2/coap_tcp_internal.h and remove reference to coap_tcp_is_supported(). include/coap2/coap.h.in: Remove reference to coap_tcp.h. coap_config.h.windows: Include #define COAP_DISABLE_TCP 0. include/coap2/coap.h.windows: Reorder #includes include/coap2/coap_internal.h: Add #include coap_tcp_internal.h include/coap2/coap_io.h: Add in definition of coap_tcp_is_supported(). win32/libcoap.vcxproj: win32/libcoap.vcxproj.filters: Include src/coap_tcp.c and include/coap2/coap_tcp_internal.h.
121 lines
3.1 KiB
Plaintext
121 lines
3.1 KiB
Plaintext
#ifndef COAP_CONFIG_H_
|
|
#define COAP_CONFIG_H_
|
|
|
|
#if defined(_WIN32)
|
|
|
|
/* Define to 1 if you have <ws2tcpip.h> header file. */
|
|
#define HAVE_WS2TCPIP_H 1
|
|
|
|
/* Define to 1 if you have <winsock2.h> header file. */
|
|
#define HAVE_WINSOCK2_H 1
|
|
|
|
/* Define to 1 if you have the <assert.h> header file. */
|
|
#define HAVE_ASSERT_H 1
|
|
|
|
/* Define to 1 if you have the `getaddrinfo' function. */
|
|
#define HAVE_GETADDRINFO 1
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
#define HAVE_INTTYPES_H 1
|
|
|
|
/* Define to 1 if you have the <limits.h> header file. */
|
|
#define HAVE_LIMITS_H 1
|
|
|
|
/* Define to 1 if you have the `malloc' function. */
|
|
#define HAVE_MALLOC 1
|
|
|
|
/* Define to 1 if you have the <memory.h> header file. */
|
|
#define HAVE_MEMORY_H 1
|
|
|
|
/* Define to 1 if you have the `memset' function. */
|
|
#define HAVE_MEMSET 1
|
|
|
|
/* Define to 1 if you have the `select' function. */
|
|
#define HAVE_SELECT 1
|
|
|
|
/* Define to 1 if you have the `socket' function. */
|
|
#define HAVE_SOCKET 1
|
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
|
#define HAVE_STDINT_H 1
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
#define HAVE_STDLIB_H 1
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
#define HAVE_STRING_H 1
|
|
|
|
/* Define to 1 if you have the `strnlen' function. */
|
|
#define HAVE_STRNLEN 1
|
|
|
|
/* Define to 1 if you have the `strrchr' function. */
|
|
#define HAVE_STRRCHR 1
|
|
|
|
/* Define to 1 if the system has the type `struct cmsghdr'. */
|
|
#define HAVE_STRUCT_CMSGHDR 1
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
#define HAVE_SYS_STAT_H 1
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
#define HAVE_SYS_TYPES_H 1
|
|
|
|
/* Define to 1 if you have the <time.h> header file. */
|
|
#define HAVE_TIME_H 1
|
|
|
|
#if defined(_MSC_VER) && (_MSC_VER < 1900) && !defined(snprintf)
|
|
#define snprintf _snprintf
|
|
#endif
|
|
|
|
#define HAVE_OPENSSL 1
|
|
|
|
#ifndef COAP_DISABLE_TCP
|
|
#define COAP_DISABLE_TCP 0
|
|
#endif
|
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
#define PACKAGE_BUGREPORT "libcoap-developers@lists.sourceforge.net"
|
|
|
|
/* Define to the full name of this package. */
|
|
#define PACKAGE_NAME "libcoap"
|
|
|
|
/* Define to the full name and version of this package. */
|
|
#define PACKAGE_STRING "libcoap 4.2.0"
|
|
|
|
/* Define to the one symbol short name of this package. */
|
|
#define PACKAGE_TARNAME "libcoap"
|
|
|
|
/* Define to the home page for this package. */
|
|
#define PACKAGE_URL "https://libcoap.net/"
|
|
|
|
/* Define to the version of this package. */
|
|
#define PACKAGE_VERSION "4.2.0"
|
|
|
|
/* Define to 1 if you have the ANSI C header files. */
|
|
#define STDC_HEADERS 1
|
|
|
|
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
significant byte first (like Motorola and SPARC, unlike Intel). */
|
|
#if defined AC_APPLE_UNIVERSAL_BUILD
|
|
# if defined __BIG_ENDIAN__
|
|
# define WORDS_BIGENDIAN 1
|
|
# endif
|
|
#else
|
|
# ifndef WORDS_BIGENDIAN
|
|
/* # undef WORDS_BIGENDIAN */
|
|
# endif
|
|
#endif
|
|
|
|
/* Define this to 1 for ancillary data on MacOS */
|
|
/* #undef __APPLE_USE_RFC_3542 */
|
|
|
|
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
|
/* #undef size_t */
|
|
|
|
/* Define to `int' if <sys/types.h> does not define. */
|
|
/* #undef ssize_t */
|
|
|
|
#endif
|
|
|
|
#endif /* COAP_CONFIG_H_ */
|