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
bdb2beb8
Commit
bdb2beb8
authored
17 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
check availability of poll.h header at configuration time, and include
it when sys/poll.h is unavailable
parent
727e2332
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
CHANGES
+3
-0
3 additions, 0 deletions
CHANGES
configure.ac
+3
-0
3 additions, 0 deletions
configure.ac
lib/select.h
+6
-2
6 additions, 2 deletions
lib/select.h
src/main.c
+2
-0
2 additions, 0 deletions
src/main.c
tests/server/util.c
+3
-1
3 additions, 1 deletion
tests/server/util.c
with
17 additions
and
3 deletions
CHANGES
+
3
−
0
View file @
bdb2beb8
...
...
@@ -6,6 +6,9 @@
Changelog
Yang Tse (22 Jan 2008)
- Check poll.h at configuration time, and use it when sys/poll.h unavailable
Daniel S (22 Jan 2008)
- Dmitry Kurochkin removed the cancelled state for pipelining, as we agreed
that it is bad anyway. Starting now, removing a handle that is in used in a
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
3
−
0
View file @
bdb2beb8
...
...
@@ -1865,6 +1865,7 @@ AC_CHECK_HEADERS(
utime.h \
sys/utime.h \
sys/poll.h \
poll.h \
sys/resource.h \
libgen.h \
locale.h \
...
...
@@ -2127,6 +2128,8 @@ if test "$disable_poll" = "no"; then
AC_RUN_IFELSE([
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
#elif defined(HAVE_POLL_H)
#include <poll.h>
#endif
int main(void)
...
...
This diff is collapsed.
Click to expand it.
lib/select.h
+
6
−
2
View file @
bdb2beb8
...
...
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 200
7
, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 200
8
, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
...
...
@@ -27,6 +27,8 @@
#ifdef HAVE_SYS_POLL_H
#include
<sys/poll.h>
#elif defined(HAVE_POLL_H)
#include
<poll.h>
#endif
/*
...
...
@@ -49,7 +51,9 @@
* Definition of pollfd struct and constants for platforms lacking them.
*/
#if !defined(HAVE_STRUCT_POLLFD) && !defined(HAVE_SYS_POLL_H)
#if !defined(HAVE_STRUCT_POLLFD) && \
!defined(HAVE_SYS_POLL_H) && \
!defined(HAVE_POLL_H)
#define POLLIN 0x01
#define POLLPRI 0x02
...
...
This diff is collapsed.
Click to expand it.
src/main.c
+
2
−
0
View file @
bdb2beb8
...
...
@@ -85,6 +85,8 @@
#ifdef HAVE_SYS_POLL_H
#include
<sys/poll.h>
#elif defined(HAVE_POLL_H)
#include
<poll.h>
#endif
#ifdef HAVE_LOCALE_H
...
...
This diff is collapsed.
Click to expand it.
tests/server/util.c
+
3
−
1
View file @
bdb2beb8
...
...
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 200
7
, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 200
8
, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
...
...
@@ -47,6 +47,8 @@
#endif
#ifdef HAVE_SYS_POLL_H
#include
<sys/poll.h>
#elif defined(HAVE_POLL_H)
#include
<poll.h>
#endif
#define ENABLE_CURLX_PRINTF
...
...
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