~ubuntu-branches/ubuntu/natty/curl/natty-security

« back to all changes in this revision

Viewing changes to tests/libtest/sethostname.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-10-07 16:53:40 UTC
  • mfrom: (3.4.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101007165340-3eahi7unrkt7magp
Tags: 7.21.1-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Keep build deps in main:
    - Drop build dependencies: stunnel, libssh2-1-dev
    - Add build-dependency on openssh-server
    - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************
 
2
 *                                  _   _ ____  _
 
3
 *  Project                     ___| | | |  _ \| |
 
4
 *                             / __| | | | |_) | |
 
5
 *                            | (__| |_| |  _ <| |___
 
6
 *                             \___|\___/|_| \_\_____|
 
7
 *
 
8
 */
 
9
 
 
10
#if (defined(WIN32) || defined(__SYMBIAN32__)) && !defined(CURL_STATICLIB)
 
11
#  if defined(BUILDING_LIBCURL)
 
12
#    define LIBHOSTNAME_EXTERN  __declspec(dllexport)
 
13
#  else
 
14
#    define LIBHOSTNAME_EXTERN  __declspec(dllimport)
 
15
#  endif
 
16
#else
 
17
#  ifdef CURL_HIDDEN_SYMBOLS
 
18
#    define LIBHOSTNAME_EXTERN CURL_EXTERN_SYMBOL
 
19
#  else
 
20
#    define LIBHOSTNAME_EXTERN
 
21
#  endif
 
22
#endif
 
23
 
 
24
#ifdef USE_WINSOCK
 
25
#  define FUNCALLCONV __stdcall
 
26
#else
 
27
#  define FUNCALLCONV
 
28
#endif
 
29
 
 
30
LIBHOSTNAME_EXTERN int FUNCALLCONV
 
31
  gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen);
 
32