]> andersk Git - openssh.git/commitdiff
- (tim) [scp.c] Use poll.h if available, fall back to sys/poll.h if not. Patch
authortim <tim>
Fri, 14 Mar 2008 00:59:50 +0000 (00:59 +0000)
committertim <tim>
Fri, 14 Mar 2008 00:59:50 +0000 (00:59 +0000)
   by vinschen at redhat.com.

ChangeLog
scp.c

index a08351bdca2832b6d4d86becfc8855db87449f2a..c45329cf965f0ce0aa46e59b288352e1cb58d89b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
    self: make changes to Makefile.in next time, not the generated Makefile).
  - (djm) [Makefile.in regress/test-exec.sh] Find installed plink(1) and
    puttygen(1) by $PATH
+ - (tim) [scp.c] Use poll.h if available, fall back to sys/poll.h if not. Patch
+   by vinschen at redhat.com.
 
 20080312
  - (djm) OpenBSD CVS Sync
diff --git a/scp.c b/scp.c
index 1734da8f4adb4d09e7c1f6074457a20a2d1238cb..c047864aa9c76f478fe6676c6dc6ef97f026b3ff 100644 (file)
--- a/scp.c
+++ b/scp.c
 #ifdef HAVE_SYS_STAT_H
 # include <sys/stat.h>
 #endif
-#ifdef HAVE_SYS_POLL_H
-# include <sys/poll.h>
+#ifdef HAVE_POLL_H
+#include <poll.h>
+#else
+# ifdef HAVE_SYS_POLL_H
+#  include <sys/poll.h>
+# endif
 #endif
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h>
This page took 0.063437 seconds and 5 git commands to generate.