Files
m241Neelima/components/webcli-4.9/target/src/wrn/wm/curl/lib/config.h
T
2026-07-30 11:19:44 +05:30

125 lines
3.8 KiB
C

#ifndef CONFIG_H
#define CONFIG_H
#define OS "vxWorks"
#include <inetLib.h>
#include <sockLib.h>
#include <hostLib.h>
#include <time.h>
#include <stdio.h>
#include <openssl/evp.h>
#include <openssl/ossl_typ.h>
#ifdef BUFSIZE
#undef BUFSIZE
#endif
#define STDC_HEADERS
#define HAVE_SYS_SOCKET_H
#define HAVE_SYS_SELECT_H
#define HAVE_NETINET_IN_H
#define HAVE_NETDB_H
#define HAVE_SYS_IOCTL_H
#define IOCTL_3_ARGS
#define HAVE_FIONBIO
#define HAVE_SYS_STAT_H
#define HAVE_STDLIB_H
#define HAVE_UNISTD_H
#define HAVE_NET_IF_H
#define HAVE_SYS_TIME_H
#define HAVE_SELECT
#define HAVE_SOCKET
#define HAVE_GETTIMEOFDAY
/*#define HAVE_NETINET_IN_H 1*/
/*#define HAVE_SYS_SOCKET_H 1*/
/*#define HAVE_SYS_SELECT_H 1*/
/*#define HAVE_NETDB_H 1*/
/*#define HAVE_ARPA_INET_H 1*/
/*#define HAVE_UNISTD_H 1*/
/*#define HAVE_NET_IF_H 1*/
/*#define HAVE_SYS_TYPES_H 1*/
/*#define HAVE_GETTIMEOFDAY 1*/
/*#define HAVE_FCNTL_H 1*/
/*#define HAVE_SYS_STAT_H 1*/
/*#define HAVE_ALLOCA_H 1*/
/*#define HAVE_TIME_H 1*/
/*#define HAVE_STDLIB_H 1*/
/*#define HAVE_UTIME_H 1*/
/*#define TIME_WITH_SYS_TIME 1*/
/*#define HAVE_STRDUP 1*/
/*#define HAVE_UTIME 1*/
/*#define HAVE_INET_NTOA 1*/
/*#define HAVE_SETVBUF 1*/
/*#define HAVE_STRFTIME 1*/
/*#define HAVE_INET_ADDR 1*/
/*#define HAVE_MEMCPY 1*/
/*#define HAVE_SELECT 1*/
/*#define HAVE_SOCKET 1*/
/*#define HAVE_SIGACTION 1*/
/*#define HAVE_RAND_STATUS 1*/
/*#define HAVE_RAND_EGD 1*/
/*#define HAVE_FIONBIO 1*/
/*#define HAVE_SYS_IOCTL_H 1*/
/*Curl definitions for using OpenSSL... */
#ifndef CURL_DISABLE_HTTPS
#define HAVE_LIBSSL 1
#define HAVE_OPENSSL_CRYPTO_H 1
#define HAVE_OPENSSL_ERR_H 1
#define HAVE_OPENSSL_PEM_H 1
#define HAVE_OPENSSL_RSA_H 1
#define HAVE_OPENSSL_SSL_H 1
#define HAVE_OPENSSL_X509_H 1
#define USE_SSLEAY 1
#define USE_OPENSSL 1
#endif /*CURL_DISABLE_HTTPS*/
/*
* Floating point support is mainly used for extended precision counters
* and timers with sub-second resolution. The vxWorks implementation of
* libcurl defaults to not using floating point as the loss of information
* is unacceptible in the embedded world.
*
* If the developer dearly wishes to use doubles and the libcurl API as it
* was originally released and documented, uncomment the HAVE_FP_SUPPORT
* #define and make sure to start all libcurl tasks with the VX_FP_TASK
* flag set.
*
* I realize this changes the public API, but I'm claiming the Nuremberg
* defense.
*/
/*#define HAVE_FP_SUPPORT 1*/
/* ---------------------------------------------------------------- */
/* TYPEDEF REPLACEMENTS */
/* ---------------------------------------------------------------- */
/* Define this if in_addr_t is not an available 'typedefed' type */
#define in_addr_t unsigned long
#define ioctl(x, y, z) ioctl((int)x, (int)y, (int)z)
#define getsockname(x, y, z) getsockname((int)x, (struct sockaddr *)y, (int *)z)
#define getsockopt(v, w, x, y, z) getsockopt((int)v, (int)w, (int)x, (char *)y, (int *)z)
#define open(x, y) open((const char *)x, (int)y, S_IRWXU)
/* ---------------------------------------------------------------- */
/* FUNCTION REPLACEMENTS */
/* ---------------------------------------------------------------- */
#if 0
static int gettimeofday(struct timeval *tp, void *nothing)
{
(void)nothing; /* we don't support specific time-zones */
tp->tv_sec = (long)time(NULL);
tp->tv_usec = 0;
return 0;
}
#endif
#endif /*#ifndef CONFIG_H*/