~ubuntu-branches/ubuntu/trusty/enigma/trusty

« back to all changes in this revision

Viewing changes to lib-src/enet/unix.c

  • Committer: Package Import Robot
  • Author(s): Erich Schubert
  • Date: 2012-06-19 21:47:22 UTC
  • mfrom: (5.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20120619214722-o8v3jobogn60iw68
Tags: 1.10~~pre-alpha+r2236-1
* New upstream checkout. No release on the horizon, but well playable.
* Acknowledge NMUs. Thank you!
* Drop suggest on enigma-level-previews which are not available for 1.10
* Update policy version, no changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#include <sys/socket.h>
9
9
#include <sys/ioctl.h>
10
10
#include <sys/time.h>
 
11
#include <sys/param.h>
11
12
#include <arpa/inet.h>
12
13
#include <netdb.h>
13
14
#include <unistd.h>
80
81
    char buffer [2048];
81
82
    int errnum;
82
83
 
83
 
#if defined(linux) || defined(__GLIBC__) || defined(__GNU__)
 
84
#if defined(linux) || defined(__GLIBC__) || defined(__GNU__) || (defined(__DragonFly__) && __DragonFly_version >= 200202)
84
85
    gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum);
85
86
#else
86
87
    hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum);
118
119
 
119
120
    in.s_addr = address -> host;
120
121
 
121
 
#if defined(linux) || defined(__GLIBC__) || defined(__GNU__)
 
122
#if defined(linux) || defined(__GLIBC__) || defined(__GNU__) || (defined(__DragonFly__) && __DragonFly_version >= 200202)
122
123
    gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum);
123
124
#else
124
125
    hostEntry = gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & errnum);