~ubuntu-branches/ubuntu/wily/net-snmp/wily-proposed

« back to all changes in this revision

Viewing changes to snmplib/inet_pton.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-28 14:59:36 UTC
  • mfrom: (1.2.3 upstream) (1.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20100628145936-cbiallic69pn044g
Tags: 5.4.3~dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. (LP: #104738)
  - Removed multiuser option when calling update-rc.d. (LP: #254261)
  - debian/snmpd.init: LSBify the init script.
  - debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcmd.1
    (LP: #250459)
  - debian/snmpd.postinst: source debconf before doing work, LP: #589056
  - debian/snmp.preinst, debian/snmp.prerm: kill any/all processes owned by
    snmp user before install/uninstall, LP: #573391
  - Add apport hook (LP: #533603):
  - debian/{snmp,snmpd}.apport: Added.
  - debian/control: Build-depends on dh-apport.
  - debian/rules: 
    + Add --with apport.
    + override_dh_apport to install hook on snmpd package only.
 * Dropped patches:
   - debian/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#ifndef HAVE_INET_PTON
23
23
 
 
24
#include <ctype.h>
 
25
 
24
26
#if HAVE_ARPA_NAMESER_H
25
27
#include <arpa/nameser.h>
26
28
#endif
27
29
 
28
 
  /*
29
 
   * Net-SNMP Win32 additions
30
 
   */
31
 
#if defined(HAVE_WINSOCK_H) || defined(cygwin)
 
30
#if defined(HAVE_WINSOCK_H)
32
31
#include <winsock2.h>
33
32
#include <ws2tcpip.h>
 
33
#endif
34
34
#include <errno.h>
35
35
#include <stdio.h>
 
36
#if HAVE_STRING_H
 
37
#include <string.h>
 
38
#else
 
39
#include <strings.h>
36
40
#endif
37
41
 
 
42
#include <net-snmp/types.h>
 
43
 
38
44
#ifndef EAFNOSUPPORT
39
45
#define EAFNOSUPPORT            WSAEAFNOSUPPORT
40
46
#endif