~ubuntu-branches/ubuntu/gutsy/curl/gutsy

« back to all changes in this revision

Viewing changes to lib/hostsyn.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-06-29 15:04:24 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20060629150424-be178abcwks1n519
Tags: upstream-7.15.4
ImportĀ upstreamĀ versionĀ 7.15.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
 
8
 * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
9
9
 *
10
10
 * This software is licensed as described in the file COPYING, which
11
11
 * you should have received as part of this distribution. The terms
18
18
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
 * KIND, either express or implied.
20
20
 *
21
 
 * $Id: hostsyn.c,v 1.5 2005/04/19 23:19:23 bagder Exp $
 
21
 * $Id: hostsyn.c,v 1.8 2006-05-04 22:39:47 bagder Exp $
22
22
 ***************************************************************************/
23
23
 
24
24
#include "setup.h"
25
25
 
26
26
#include <string.h>
27
 
#include <errno.h>
28
27
 
29
 
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
 
28
#ifdef HAVE_MALLOC_H
30
29
#include <malloc.h>
31
 
#else
 
30
#endif
32
31
#ifdef HAVE_SYS_TYPES_H
33
32
#include <sys/types.h>
34
33
#endif
55
54
#include <inet.h>
56
55
#include <stdlib.h>
57
56
#endif
58
 
#endif
59
57
 
60
58
#ifdef HAVE_SETJMP_H
61
59
#include <setjmp.h>
62
60
#endif
63
61
 
64
 
#ifdef WIN32
 
62
#ifdef HAVE_PROCESS_H
65
63
#include <process.h>
66
64
#endif
67
65
 
126
124
 * It is present here to keep #ifdefs out from multi.c
127
125
 */
128
126
 
129
 
CURLcode Curl_resolv_fdset(struct connectdata *conn,
130
 
                           fd_set *read_fd_set,
131
 
                           fd_set *write_fd_set,
132
 
                           int *max_fdp)
 
127
int Curl_resolv_getsock(struct connectdata *conn,
 
128
                        curl_socket_t *sock,
 
129
                        int numsocks)
133
130
{
134
131
  (void)conn;
135
 
  (void)read_fd_set;
136
 
  (void)write_fd_set;
137
 
  (void)max_fdp;
 
132
  (void)sock;
 
133
  (void)numsocks;
138
134
 
139
 
  return CURLE_OK;
 
135
  return 0; /* no bits since we don't use any socks */
140
136
}
141
137
 
142
138
#endif /* truly sync */