diff options
author | Tim Rice <tim@multitalents.net> | 2008-03-13 17:59:50 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2008-03-13 17:59:50 -0700 |
commit | 3eb144911c149c293bf681bec7da649a8d33d420 (patch) | |
tree | 2165052a9f2b5eb82059cfa32924fc67d681af67 /scp.c | |
parent | c2cefb0fe9b310d4edc3fc28e5aac2e2cfb6d6aa (diff) |
- (tim) [scp.c] Use poll.h if available, fall back to sys/poll.h if not. Patch
by vinschen at redhat.com.
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -78,8 +78,12 @@ | |||
78 | #ifdef HAVE_SYS_STAT_H | 78 | #ifdef HAVE_SYS_STAT_H |
79 | # include <sys/stat.h> | 79 | # include <sys/stat.h> |
80 | #endif | 80 | #endif |
81 | #ifdef HAVE_SYS_POLL_H | 81 | #ifdef HAVE_POLL_H |
82 | # include <sys/poll.h> | 82 | #include <poll.h> |
83 | #else | ||
84 | # ifdef HAVE_SYS_POLL_H | ||
85 | # include <sys/poll.h> | ||
86 | # endif | ||
83 | #endif | 87 | #endif |
84 | #ifdef HAVE_SYS_TIME_H | 88 | #ifdef HAVE_SYS_TIME_H |
85 | # include <sys/time.h> | 89 | # include <sys/time.h> |