~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to ext/socket/getnameinfo.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-04 16:01:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070904160117-i15zckg2nhxe9fyw
Tags: 1.9.0+20070830-2ubuntu1
* Sync from Debian; remaining changes:
  - Add -g to CFLAGS.
* Fixes build failure on ia64.
* Fixes build failure with gcc-4.2 on lpia.
* Robustify check for target_os, fixing build failure on lpia.
* Set Ubuntu maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 *   but INRIA implementation returns EAI_xxx defined for getaddrinfo().
35
35
 */
36
36
 
37
 
#include "config.h"
 
37
#include "ruby/config.h"
 
38
#include <stdio.h>
38
39
#include <sys/types.h>
39
40
#ifndef _WIN32
40
41
#if defined(__BEOS__)
51
52
#endif
52
53
#include <netdb.h>
53
54
#if defined(HAVE_RESOLV_H)
54
 
#ifdef _SX
55
 
#include <stdio.h>
56
 
#endif
57
55
#include <resolv.h>
58
56
#endif
59
57
#endif
60
58
#ifdef _WIN32
61
59
#include <winsock2.h>
62
 
#include <stdio.h>
63
60
#define snprintf _snprintf
64
61
#endif
65
62