Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
0abaf224
Commit
0abaf224
authored
16 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
#include <stdlib.h> for exit() prototype
parent
463a8134
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
acinclude.m4
+6
-0
6 additions, 0 deletions
acinclude.m4
ares/acinclude.m4
+6
-0
6 additions, 0 deletions
ares/acinclude.m4
ares/m4/cares-functions.m4
+26
-1
26 additions, 1 deletion
ares/m4/cares-functions.m4
m4/curl-functions.m4
+12
-1
12 additions, 1 deletion
m4/curl-functions.m4
with
50 additions
and
2 deletions
acinclude.m4
+
6
−
0
View file @
0abaf224
...
@@ -1235,6 +1235,9 @@ AC_DEFUN([CURL_CHECK_NI_WITHSCOPEID], [
...
@@ -1235,6 +1235,9 @@ AC_DEFUN([CURL_CHECK_NI_WITHSCOPEID], [
[ac_cv_working_ni_withscopeid], [
[ac_cv_working_ni_withscopeid], [
AC_RUN_IFELSE([
AC_RUN_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_STDIO_H
#ifdef HAVE_STDIO_H
#include <stdio.h>
#include <stdio.h>
#endif
#endif
...
@@ -2317,6 +2320,9 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
...
@@ -2317,6 +2320,9 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
AC_MSG_CHECKING([if monotonic clock_gettime works])
AC_MSG_CHECKING([if monotonic clock_gettime works])
AC_RUN_IFELSE([
AC_RUN_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#include <sys/types.h>
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
ares/acinclude.m4
+
6
−
0
View file @
0abaf224
...
@@ -702,6 +702,9 @@ AC_DEFUN([CURL_CHECK_NI_WITHSCOPEID], [
...
@@ -702,6 +702,9 @@ AC_DEFUN([CURL_CHECK_NI_WITHSCOPEID], [
[ac_cv_working_ni_withscopeid], [
[ac_cv_working_ni_withscopeid], [
AC_RUN_IFELSE([
AC_RUN_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_STDIO_H
#ifdef HAVE_STDIO_H
#include <stdio.h>
#include <stdio.h>
#endif
#endif
...
@@ -1785,6 +1788,9 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
...
@@ -1785,6 +1788,9 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
AC_MSG_CHECKING([if monotonic clock_gettime works])
AC_MSG_CHECKING([if monotonic clock_gettime works])
AC_RUN_IFELSE([
AC_RUN_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#include <sys/types.h>
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
ares/m4/cares-functions.m4
+
26
−
1
View file @
0abaf224
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#***************************************************************************
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
# File version for 'aclocal' use. Keep it a single number.
# serial
8
# serial
10
dnl CARES_INCLUDES_ARPA_INET
dnl CARES_INCLUDES_ARPA_INET
...
@@ -67,6 +67,27 @@ cares_includes_netdb="\
...
@@ -67,6 +67,27 @@ cares_includes_netdb="\
])
])
dnl CARES_INCLUDES_STDLIB
dnl -------------------------------------------------
dnl Set up variable with list of headers that must be
dnl included when stdlib.h is to be included.
AC_DEFUN([CARES_INCLUDES_STDLIB], [
cares_includes_stdlib="\
/* includes start */
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
/* includes end */"
AC_CHECK_HEADERS(
sys/types.h stdlib.h,
[], [], [$cares_includes_stdlib])
])
dnl CARES_INCLUDES_STRING
dnl CARES_INCLUDES_STRING
dnl -------------------------------------------------
dnl -------------------------------------------------
dnl Set up variable with list of headers that must be
dnl Set up variable with list of headers that must be
...
@@ -404,6 +425,7 @@ dnl with shell variable cares_disallow_inet_ntop, then
...
@@ -404,6 +425,7 @@ dnl with shell variable cares_disallow_inet_ntop, then
dnl HAVE_INET_NTOP will be defined.
dnl HAVE_INET_NTOP will be defined.
AC_DEFUN([CARES_CHECK_FUNC_INET_NTOP], [
AC_DEFUN([CARES_CHECK_FUNC_INET_NTOP], [
AC_REQUIRE([CARES_INCLUDES_STDLIB])dnl
AC_REQUIRE([CARES_INCLUDES_ARPA_INET])dnl
AC_REQUIRE([CARES_INCLUDES_ARPA_INET])dnl
AC_REQUIRE([CARES_INCLUDES_STRING])dnl
AC_REQUIRE([CARES_INCLUDES_STRING])dnl
#
#
...
@@ -461,6 +483,7 @@ AC_DEFUN([CARES_CHECK_FUNC_INET_NTOP], [
...
@@ -461,6 +483,7 @@ AC_DEFUN([CARES_CHECK_FUNC_INET_NTOP], [
AC_MSG_CHECKING([if inet_ntop seems to work])
AC_MSG_CHECKING([if inet_ntop seems to work])
AC_RUN_IFELSE([
AC_RUN_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
$cares_includes_stdlib
$cares_includes_arpa_inet
$cares_includes_arpa_inet
$cares_includes_string
$cares_includes_string
]],[[
]],[[
...
@@ -561,6 +584,7 @@ dnl with shell variable cares_disallow_inet_pton, then
...
@@ -561,6 +584,7 @@ dnl with shell variable cares_disallow_inet_pton, then
dnl HAVE_INET_PTON will be defined.
dnl HAVE_INET_PTON will be defined.
AC_DEFUN([CARES_CHECK_FUNC_INET_PTON], [
AC_DEFUN([CARES_CHECK_FUNC_INET_PTON], [
AC_REQUIRE([CARES_INCLUDES_STDLIB])dnl
AC_REQUIRE([CARES_INCLUDES_ARPA_INET])dnl
AC_REQUIRE([CARES_INCLUDES_ARPA_INET])dnl
AC_REQUIRE([CARES_INCLUDES_STRING])dnl
AC_REQUIRE([CARES_INCLUDES_STRING])dnl
#
#
...
@@ -618,6 +642,7 @@ AC_DEFUN([CARES_CHECK_FUNC_INET_PTON], [
...
@@ -618,6 +642,7 @@ AC_DEFUN([CARES_CHECK_FUNC_INET_PTON], [
AC_MSG_CHECKING([if inet_pton seems to work])
AC_MSG_CHECKING([if inet_pton seems to work])
AC_RUN_IFELSE([
AC_RUN_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
$cares_includes_stdlib
$cares_includes_arpa_inet
$cares_includes_arpa_inet
$cares_includes_string
$cares_includes_string
]],[[
]],[[
...
...
This diff is collapsed.
Click to expand it.
m4/curl-functions.m4
+
12
−
1
View file @
0abaf224
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#***************************************************************************
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
# File version for 'aclocal' use. Keep it a single number.
# serial 2
4
# serial 2
5
dnl CURL_INCLUDES_ARPA_INET
dnl CURL_INCLUDES_ARPA_INET
...
@@ -1062,6 +1062,7 @@ dnl with shell variable curl_disallow_gmtime_r, then
...
@@ -1062,6 +1062,7 @@ dnl with shell variable curl_disallow_gmtime_r, then
dnl HAVE_GMTIME_R will be defined.
dnl HAVE_GMTIME_R will be defined.
AC_DEFUN([CURL_CHECK_FUNC_GMTIME_R], [
AC_DEFUN([CURL_CHECK_FUNC_GMTIME_R], [
AC_REQUIRE([CURL_INCLUDES_STDLIB])dnl
AC_REQUIRE([CURL_INCLUDES_TIME])dnl
AC_REQUIRE([CURL_INCLUDES_TIME])dnl
#
#
tst_links_gmtime_r="unknown"
tst_links_gmtime_r="unknown"
...
@@ -1118,6 +1119,7 @@ AC_DEFUN([CURL_CHECK_FUNC_GMTIME_R], [
...
@@ -1118,6 +1119,7 @@ AC_DEFUN([CURL_CHECK_FUNC_GMTIME_R], [
AC_MSG_CHECKING([if gmtime_r seems to work])
AC_MSG_CHECKING([if gmtime_r seems to work])
AC_RUN_IFELSE([
AC_RUN_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
$curl_includes_stdlib
$curl_includes_time
$curl_includes_time
]],[[
]],[[
time_t local = 1170352587;
time_t local = 1170352587;
...
@@ -1300,6 +1302,7 @@ dnl with shell variable curl_disallow_inet_ntop, then
...
@@ -1300,6 +1302,7 @@ dnl with shell variable curl_disallow_inet_ntop, then
dnl HAVE_INET_NTOP will be defined.
dnl HAVE_INET_NTOP will be defined.
AC_DEFUN([CURL_CHECK_FUNC_INET_NTOP], [
AC_DEFUN([CURL_CHECK_FUNC_INET_NTOP], [
AC_REQUIRE([CURL_INCLUDES_STDLIB])dnl
AC_REQUIRE([CURL_INCLUDES_ARPA_INET])dnl
AC_REQUIRE([CURL_INCLUDES_ARPA_INET])dnl
AC_REQUIRE([CURL_INCLUDES_STRING])dnl
AC_REQUIRE([CURL_INCLUDES_STRING])dnl
#
#
...
@@ -1357,6 +1360,7 @@ AC_DEFUN([CURL_CHECK_FUNC_INET_NTOP], [
...
@@ -1357,6 +1360,7 @@ AC_DEFUN([CURL_CHECK_FUNC_INET_NTOP], [
AC_MSG_CHECKING([if inet_ntop seems to work])
AC_MSG_CHECKING([if inet_ntop seems to work])
AC_RUN_IFELSE([
AC_RUN_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
$curl_includes_stdlib
$curl_includes_arpa_inet
$curl_includes_arpa_inet
$curl_includes_string
$curl_includes_string
]],[[
]],[[
...
@@ -1457,6 +1461,7 @@ dnl with shell variable curl_disallow_inet_pton, then
...
@@ -1457,6 +1461,7 @@ dnl with shell variable curl_disallow_inet_pton, then
dnl HAVE_INET_PTON will be defined.
dnl HAVE_INET_PTON will be defined.
AC_DEFUN([CURL_CHECK_FUNC_INET_PTON], [
AC_DEFUN([CURL_CHECK_FUNC_INET_PTON], [
AC_REQUIRE([CURL_INCLUDES_STDLIB])dnl
AC_REQUIRE([CURL_INCLUDES_ARPA_INET])dnl
AC_REQUIRE([CURL_INCLUDES_ARPA_INET])dnl
AC_REQUIRE([CURL_INCLUDES_STRING])dnl
AC_REQUIRE([CURL_INCLUDES_STRING])dnl
#
#
...
@@ -1514,6 +1519,7 @@ AC_DEFUN([CURL_CHECK_FUNC_INET_PTON], [
...
@@ -1514,6 +1519,7 @@ AC_DEFUN([CURL_CHECK_FUNC_INET_PTON], [
AC_MSG_CHECKING([if inet_pton seems to work])
AC_MSG_CHECKING([if inet_pton seems to work])
AC_RUN_IFELSE([
AC_RUN_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
$curl_includes_stdlib
$curl_includes_arpa_inet
$curl_includes_arpa_inet
$curl_includes_string
$curl_includes_string
]],[[
]],[[
...
@@ -1618,6 +1624,7 @@ dnl with shell variable curl_disallow_localtime_r, then
...
@@ -1618,6 +1624,7 @@ dnl with shell variable curl_disallow_localtime_r, then
dnl HAVE_LOCALTIME_R will be defined.
dnl HAVE_LOCALTIME_R will be defined.
AC_DEFUN([CURL_CHECK_FUNC_LOCALTIME_R], [
AC_DEFUN([CURL_CHECK_FUNC_LOCALTIME_R], [
AC_REQUIRE([CURL_INCLUDES_STDLIB])dnl
AC_REQUIRE([CURL_INCLUDES_TIME])dnl
AC_REQUIRE([CURL_INCLUDES_TIME])dnl
#
#
tst_links_localtime_r="unknown"
tst_links_localtime_r="unknown"
...
@@ -1674,6 +1681,7 @@ AC_DEFUN([CURL_CHECK_FUNC_LOCALTIME_R], [
...
@@ -1674,6 +1681,7 @@ AC_DEFUN([CURL_CHECK_FUNC_LOCALTIME_R], [
AC_MSG_CHECKING([if localtime_r seems to work])
AC_MSG_CHECKING([if localtime_r seems to work])
AC_RUN_IFELSE([
AC_RUN_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
$curl_includes_stdlib
$curl_includes_time
$curl_includes_time
]],[[
]],[[
time_t clock = 1170352587;
time_t clock = 1170352587;
...
@@ -2450,6 +2458,7 @@ dnl error string in the provided resultbuf.
...
@@ -2450,6 +2458,7 @@ dnl error string in the provided resultbuf.
dnl
dnl
AC_DEFUN([CURL_CHECK_FUNC_STRERROR_R], [
AC_DEFUN([CURL_CHECK_FUNC_STRERROR_R], [
AC_REQUIRE([CURL_INCLUDES_STDLIB])dnl
AC_REQUIRE([CURL_INCLUDES_STRING])dnl
AC_REQUIRE([CURL_INCLUDES_STRING])dnl
#
#
tst_links_strerror_r="unknown"
tst_links_strerror_r="unknown"
...
@@ -2541,6 +2550,7 @@ AC_DEFUN([CURL_CHECK_FUNC_STRERROR_R], [
...
@@ -2541,6 +2550,7 @@ AC_DEFUN([CURL_CHECK_FUNC_STRERROR_R], [
AC_MSG_CHECKING([if strerror_r seems to work])
AC_MSG_CHECKING([if strerror_r seems to work])
AC_RUN_IFELSE([
AC_RUN_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
$curl_includes_stdlib
$curl_includes_string
$curl_includes_string
# include <errno.h>
# include <errno.h>
]],[[
]],[[
...
@@ -2601,6 +2611,7 @@ AC_DEFUN([CURL_CHECK_FUNC_STRERROR_R], [
...
@@ -2601,6 +2611,7 @@ AC_DEFUN([CURL_CHECK_FUNC_STRERROR_R], [
AC_MSG_CHECKING([if strerror_r seems to work])
AC_MSG_CHECKING([if strerror_r seems to work])
AC_RUN_IFELSE([
AC_RUN_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
$curl_includes_stdlib
$curl_includes_string
$curl_includes_string
# include <errno.h>
# include <errno.h>
]],[[
]],[[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment