~ubuntu-branches/ubuntu/precise/wget/precise-proposed

« back to all changes in this revision

Viewing changes to src/sysdep.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-10-19 00:00:09 UTC
  • mfrom: (2.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20111019000009-8p33w3wz4b1rdri0
Tags: 1.13-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add wget-udeb to ship wget.gnu as alternative to busybox wget
    implementation.
  - Depend on libssl-dev 0.9.8k-7ubuntu4 (LP: #503339)
* Dropped changes, superseded in Debian:
  - Keep build dependencies in main:
    + debian/control: remove info2man build-dep
    + debian/patches/series: disable wget-infopod_generated_manpage
  - Mark wget Multi-Arch: foreign, so packages that aren't of the same arch
    can depend on it.
* Pass --with-ssl=openssl; we don't want to use gnutls, there's no udeb for
  it.
* Add a second build pass for the udeb, so we can build without libidn.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Dirty system-dependent hacks.
2
2
   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3
 
   2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
 
3
   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
 
4
   Inc.
4
5
 
5
6
This file is part of GNU Wget.
6
7
 
70
71
/* Request the "Unix 98 compilation environment". */
71
72
#define _XOPEN_SOURCE 500
72
73
 
73
 
/* For Solaris: request everything else that is available and doesn't
74
 
   conflict with the above.  */
75
 
/* #define __EXTENSIONS__ */ /* XXX clashes with config.h */
76
 
 
77
 
/* For Linux: request features of 4.3BSD and SVID (System V Interface
78
 
   Definition). */
79
 
#define _SVID_SOURCE
80
 
#define _BSD_SOURCE
81
 
 
82
 
/* Under glibc-based systems we want all GNU extensions as well.  This
83
 
   declares some unnecessary cruft, but also useful functions such as
84
 
   timegm, FNM_CASEFOLD extension to fnmatch, memrchr, etc.  */
85
 
/* #define _GNU_SOURCE */ /* XXX clashes with config.h */
86
 
 
87
74
#endif /* NAMESPACE_TWEAKS */
88
75
 
89
76
 
131
118
# include "mswindows.h"
132
119
#endif
133
120
 
134
 
/* Provide support for C99-type boolean type "bool".  This blurb comes
135
 
   straight from the Autoconf 2.59 manual. */
136
 
#if HAVE_STDBOOL_H
 
121
/* Provided by gnulib on systems that don't have it: */
137
122
# include <stdbool.h>
138
 
#else
139
 
# if ! HAVE__BOOL
140
 
#  ifdef __cplusplus
141
 
typedef bool _Bool;
142
 
#  else
143
 
typedef unsigned char _Bool;
144
 
#  endif
145
 
# endif
146
 
# define bool _Bool
147
 
# define false 0
148
 
# define true 1
149
 
# define __bool_true_false_are_defined 1
150
 
#endif
151
123
 
152
124
/* Needed for compilation under OS/2 and MSDOS */
153
125
#if defined(__EMX__) || defined(MSDOS)
216
188
/* These are defined in snprintf.c.  It would be nice to have an
217
189
   snprintf.h, though.  */
218
190
#ifndef HAVE_SNPRINTF
219
 
int snprintf ();
 
191
int snprintf (char *str, size_t count, const char *fmt, ...);
220
192
#endif
221
193
#ifndef HAVE_VSNPRINTF
222
 
int vsnprintf ();
 
194
#include <stdarg.h>
 
195
int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
223
196
#endif
224
197
 
225
198
/* Some systems (Linux libc5, "NCR MP-RAS 3.0", and others) don't