mirror of
https://github.com/libssh2/libssh2.git
synced 2025-08-07 08:02:56 +03:00
nw, os400, watcom: stop setting unused macros [ci skip] (#859)
This commit is contained in:
@@ -396,96 +396,30 @@ ifeq ($(LIBARCH),CLIB)
|
|||||||
@echo $(DL)#define sleep(s) delay(1000 * s)$(DL) >> $@
|
@echo $(DL)#define sleep(s) delay(1000 * s)$(DL) >> $@
|
||||||
else
|
else
|
||||||
@echo $(DL)#define OS "i586-pc-libc-NetWare"$(DL) >> $@
|
@echo $(DL)#define OS "i586-pc-libc-NetWare"$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_DLFCN_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_DLOPEN 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_FTRUNCATE 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_GETTIMEOFDAY 1$(DL) >> $@
|
@echo $(DL)#define HAVE_GETTIMEOFDAY 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_INET_PTON 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_INTTYPES_H 1$(DL) >> $@
|
@echo $(DL)#define HAVE_INTTYPES_H 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_LIMITS_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_LONGLONG 1$(DL) >> $@
|
@echo $(DL)#define HAVE_LONGLONG 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_STDINT_H 1$(DL) >> $@
|
@echo $(DL)#define HAVE_STDINT_H 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_STRLCAT 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_STRLCPY 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_STRTOLL 1$(DL) >> $@
|
@echo $(DL)#define HAVE_STRTOLL 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@
|
@echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_SYS_SELECT_H 1$(DL) >> $@
|
@echo $(DL)#define HAVE_SYS_SELECT_H 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_TERMIOS_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@
|
|
||||||
ifdef ENABLE_IPV6
|
|
||||||
@echo $(DL)#define ENABLE_IPV6 1$(DL) >> $@
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
@echo $(DL)#define HAVE_SNPRINTF 1$(DL) >> $@
|
@echo $(DL)#define HAVE_SNPRINTF 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_ARPA_INET_H 1$(DL) >> $@
|
@echo $(DL)#define HAVE_ARPA_INET_H 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_CTYPE_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_ERRNO_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_FIONBIO 1$(DL) >> $@
|
@echo $(DL)#define HAVE_FIONBIO 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_GETHOSTBYNAME 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_GETPROTOBYNAME 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_GMTIME_R 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_INET_NTOA 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_LL 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_LOCALTIME_R 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_MALLOC_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_NETINET_IN_H 1$(DL) >> $@
|
@echo $(DL)#define HAVE_NETINET_IN_H 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_SELECT 1$(DL) >> $@
|
@echo $(DL)#define HAVE_SELECT 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_SETJMP_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_SIGNAL 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_SIGNAL_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_SIG_ATOMIC_T 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_STDLIB_H 1$(DL) >> $@
|
@echo $(DL)#define HAVE_STDLIB_H 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_STRDUP 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_STRFTIME 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_STRING_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_STRSTR 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_STRUCT_TIMEVAL 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_SYS_IOCTL_H 1$(DL) >> $@
|
@echo $(DL)#define HAVE_SYS_IOCTL_H 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_SYS_STAT_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_SYS_TIME_H 1$(DL) >> $@
|
@echo $(DL)#define HAVE_SYS_TIME_H 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_TIME_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_UNAME 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_UNISTD_H 1$(DL) >> $@
|
@echo $(DL)#define HAVE_UNISTD_H 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_UTIME 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_UTIME_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define RETSIGTYPE void$(DL) >> $@
|
|
||||||
@echo $(DL)#define SIZEOF_STRUCT_IN_ADDR 4$(DL) >> $@
|
|
||||||
@echo $(DL)#define STDC_HEADERS 1$(DL) >> $@
|
@echo $(DL)#define STDC_HEADERS 1$(DL) >> $@
|
||||||
@echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define USE_SSLEAY 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define USE_OPENSSL 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_OPENSSL_X509_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_OPENSSL_SSL_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_OPENSSL_RSA_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_OPENSSL_PEM_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_OPENSSL_ERR_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_OPENSSL_CRYPTO_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_OPENSSL_ENGINE_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_O_NONBLOCK 1$(DL) >> $@
|
@echo $(DL)#define HAVE_O_NONBLOCK 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_LIBSSL 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_LIBCRYPTO 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define OPENSSL_NO_KRB5 1$(DL) >> $@
|
|
||||||
ifdef WITH_ZLIB
|
ifdef WITH_ZLIB
|
||||||
@echo $(DL)#define HAVE_ZLIB_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_LIBZ 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define LIBSSH2_HAVE_ZLIB 1$(DL) >> $@
|
@echo $(DL)#define LIBSSH2_HAVE_ZLIB 1$(DL) >> $@
|
||||||
endif
|
endif
|
||||||
ifdef NW_WINSOCK
|
ifndef NW_WINSOCK
|
||||||
@echo $(DL)#define HAVE_CLOSESOCKET 1$(DL) >> $@
|
|
||||||
else
|
|
||||||
@echo $(DL)#define HAVE_SYS_TYPES_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_SYS_SOCKET_H 1$(DL) >> $@
|
@echo $(DL)#define HAVE_SYS_SOCKET_H 1$(DL) >> $@
|
||||||
@echo $(DL)#define HAVE_SYS_SOCKIO_H 1$(DL) >> $@
|
|
||||||
@echo $(DL)#define HAVE_NETDB_H 1$(DL) >> $@
|
|
||||||
endif
|
endif
|
||||||
ifdef OLD_NOVELLSDK
|
ifdef OLD_NOVELLSDK
|
||||||
@echo $(DL)#define socklen_t int$(DL) >> $@
|
@echo $(DL)#define socklen_t int$(DL) >> $@
|
||||||
|
@@ -198,7 +198,7 @@ make_module()
|
|||||||
DEFINES="${3}"
|
DEFINES="${3}"
|
||||||
|
|
||||||
if [ "${WITH_ZLIB}" != "0" ]
|
if [ "${WITH_ZLIB}" != "0" ]
|
||||||
then DEFINES="${DEFINES} HAVE_LIBZ LIBSSH2_HAVE_ZLIB"
|
then DEFINES="${DEFINES} LIBSSH2_HAVE_ZLIB"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${DEFINES}" ]
|
if [ "${DEFINES}" ]
|
||||||
|
@@ -62,18 +62,9 @@
|
|||||||
/* disabled non-blocking sockets */
|
/* disabled non-blocking sockets */
|
||||||
#undef HAVE_DISABLED_NONBLOCKING
|
#undef HAVE_DISABLED_NONBLOCKING
|
||||||
|
|
||||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
||||||
#undef HAVE_DLFCN_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <errno.h> header file. */
|
|
||||||
#define HAVE_ERRNO_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `EVP_aes_128_ctr' function. */
|
/* Define to 1 if you have the `EVP_aes_128_ctr' function. */
|
||||||
#undef HAVE_EVP_AES_128_CTR
|
#undef HAVE_EVP_AES_128_CTR
|
||||||
|
|
||||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
|
||||||
#define HAVE_FCNTL_H 1
|
|
||||||
|
|
||||||
/* use FIONBIO for non-blocking sockets */
|
/* use FIONBIO for non-blocking sockets */
|
||||||
#undef HAVE_FIONBIO
|
#undef HAVE_FIONBIO
|
||||||
|
|
||||||
@@ -89,27 +80,15 @@
|
|||||||
/* use Ioctlsocket() for non-blocking sockets */
|
/* use Ioctlsocket() for non-blocking sockets */
|
||||||
#undef HAVE_IOCTLSOCKET_CASE
|
#undef HAVE_IOCTLSOCKET_CASE
|
||||||
|
|
||||||
/* Define if you have the bcrypt library. */
|
|
||||||
#undef HAVE_LIBBCRYPT
|
|
||||||
|
|
||||||
/* Define if you have the crypt32 library. */
|
/* Define if you have the crypt32 library. */
|
||||||
#undef HAVE_LIBCRYPT32
|
#undef HAVE_LIBCRYPT32
|
||||||
|
|
||||||
/* Define if you have the gcrypt library. */
|
/* Define if you have the gcrypt library. */
|
||||||
#undef HAVE_LIBGCRYPT
|
#undef HAVE_LIBGCRYPT
|
||||||
|
|
||||||
/* Define if you have the ssl library. */
|
|
||||||
#undef HAVE_LIBSSL
|
|
||||||
|
|
||||||
/* Define if you have the z library. */
|
|
||||||
/* #undef HAVE_LIBZ */
|
|
||||||
|
|
||||||
/* Define to 1 if the compiler supports the 'long long' data type. */
|
/* Define to 1 if the compiler supports the 'long long' data type. */
|
||||||
#define HAVE_LONGLONG 1
|
#define HAVE_LONGLONG 1
|
||||||
|
|
||||||
/* Define to 1 if you have the <memory.h> header file. */
|
|
||||||
#undef HAVE_MEMORY_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <netinet/in.h> header file. */
|
/* Define to 1 if you have the <netinet/in.h> header file. */
|
||||||
#define HAVE_NETINET_IN_H 1
|
#define HAVE_NETINET_IN_H 1
|
||||||
|
|
||||||
@@ -134,12 +113,6 @@
|
|||||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||||
#define HAVE_STDLIB_H 1
|
#define HAVE_STDLIB_H 1
|
||||||
|
|
||||||
/* Define to 1 if you have the <strings.h> header file. */
|
|
||||||
#define HAVE_STRINGS_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 `strtoll' function. */
|
/* Define to 1 if you have the `strtoll' function. */
|
||||||
#define HAVE_STRTOLL 1
|
#define HAVE_STRTOLL 1
|
||||||
|
|
||||||
@@ -152,15 +125,9 @@
|
|||||||
/* Define to 1 if you have the <sys/socket.h> header file. */
|
/* Define to 1 if you have the <sys/socket.h> header file. */
|
||||||
#define HAVE_SYS_SOCKET_H 1
|
#define HAVE_SYS_SOCKET_H 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/time.h> header file. */
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||||
#define HAVE_SYS_TIME_H 1
|
#define HAVE_SYS_TIME_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 <sys/uio.h> header file. */
|
/* Define to 1 if you have the <sys/uio.h> header file. */
|
||||||
#define HAVE_SYS_UIO_H 1
|
#define HAVE_SYS_UIO_H 1
|
||||||
|
|
||||||
|
@@ -54,10 +54,6 @@ CFLAGS += -d3 $(DEBUG)
|
|||||||
CFLAGS += -d0
|
CFLAGS += -d0
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
!ifdef %use_ipv6
|
|
||||||
CFLAGS += -d_WIN32_WINNT=0x0501 -dENABLE_IPV6
|
|
||||||
!endif
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Change to suite.
|
# Change to suite.
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user