File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919/* Define to 1 if you have the `gmtime_r' function. */
2020#cmakedefine HAVE_GMTIME_R @HAVE_GMTIME_R@
2121
22- /* Define to 1 if you have the <limits.h> header file. */
23- #cmakedefine HAVE_LIMITS_H @HAVE_LIMITS_H@
24-
2522/* Define to 1 if you have the <pcap/pcap.h> header file. */
2623#cmakedefine HAVE_PCAP_PCAP_H @HAVE_PCAP_PCAP_H@
2724
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ extern "C" {
3333#endif
3434
3535#ifndef WOLFSSL_OPTIONS_IGNORE_SYS
36+ /* Since types.h depends on HAVE_LIMITS_H, we must define it in options.h. */
37+ #undef HAVE_LIMITS_H
38+ #cmakedefine HAVE_LIMITS_H @HAVE_LIMITS_H@
3639#undef _GNU_SOURCE
3740#cmakedefine _GNU_SOURCE
3841#undef _POSIX_THREADS
Original file line number Diff line number Diff line change @@ -185,7 +185,9 @@ AC_ARG_ENABLE([freebsdkm-crypto-register],
185185 [ ENABLED_BSDKM_REGISTER=no]
186186 )
187187
188- AC_CHECK_HEADERS ( [ arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stddef.h time.h sys/ioctl.h sys/socket.h sys/time.h errno.h sys/un.h ctype.h sys/random.h] )
188+ AC_CHECK_HEADERS ( [ arpa/inet.h fcntl.h netdb.h netinet/in.h stddef.h time.h sys/ioctl.h sys/socket.h sys/time.h errno.h sys/un.h ctype.h sys/random.h] )
189+ # Special case: Since types.h depends on HAVE_LIMITS_H, we must define it in options.h.
190+ AC_CHECK_HEADER ( [ limits.h] , [ AM_CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIMITS_H=1"] , [ ] )
189191AC_CHECK_LIB ( [ network] ,[ socket] )
190192AC_C_BIGENDIAN
191193AC_C___ATOMIC
You can’t perform that action at this time.
0 commit comments