~ubuntu-branches/ubuntu/lucid/curl/lucid-201101212007

« back to all changes in this revision

Viewing changes to lib/select.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-02-08 11:20:41 UTC
  • mto: (3.1.1 lenny) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20080208112041-hed7sb5r6ghmjf8v
Tags: upstream-7.18.0
ImportĀ upstreamĀ versionĀ 7.18.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *                            | (__| |_| |  _ <| |___
8
8
 *                             \___|\___/|_| \_\_____|
9
9
 *
10
 
 * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
 
10
 * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
 *
12
12
 * This software is licensed as described in the file COPYING, which
13
13
 * you should have received as part of this distribution. The terms
20
20
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
 * KIND, either express or implied.
22
22
 *
23
 
 * $Id: select.h,v 1.13 2007-06-14 11:21:48 bagder Exp $
 
23
 * $Id: select.h,v 1.15 2008-01-22 14:52:54 yangtse Exp $
24
24
 ***************************************************************************/
25
25
 
26
26
#include "setup.h"
27
27
 
28
28
#ifdef HAVE_SYS_POLL_H
29
29
#include <sys/poll.h>
 
30
#elif defined(HAVE_POLL_H)
 
31
#include <poll.h>
30
32
#endif
31
33
 
32
34
/*
40
42
#undef  HAVE_POLL_FINE
41
43
#define HAVE_POLL_FINE 1
42
44
#define poll(x,y,z) WSAPoll((x),(y),(z))
 
45
#if defined(_MSC_VER) && defined(POLLRDNORM)
 
46
#define HAVE_STRUCT_POLLFD 1
 
47
#endif
43
48
#endif
44
49
 
45
50
/*
46
51
 * Definition of pollfd struct and constants for platforms lacking them.
47
52
 */
48
53
 
49
 
#ifndef HAVE_SYS_POLL_H
 
54
#if !defined(HAVE_STRUCT_POLLFD) && \
 
55
    !defined(HAVE_SYS_POLL_H) && \
 
56
    !defined(HAVE_POLL_H)
50
57
 
51
58
#define POLLIN      0x01
52
59
#define POLLPRI     0x02