OpenBSD 4.4 compilation fixes. Does not deal with lack of -Wextra or -Wstrict-aliasing for lpu or hubbub.

svn path=/trunk/netsurf/; revision=6673
This commit is contained in:
Rob Kendrick 2009-03-02 19:26:11 +00:00
parent 8dfdd67e87
commit c72b3cf71a
3 changed files with 6 additions and 4 deletions

View File

@ -104,7 +104,8 @@ void netsurf_init(int argc, char** argv)
* SIGPIPE, anyway, so may as well just ignore them all. */
signal(SIGPIPE, SIG_IGN);
#if !((defined(__SVR4) && defined(__sun)) || defined(__NetBSD__))
#if !((defined(__SVR4) && defined(__sun)) || defined(__NetBSD__) || \
defined(__OpenBSD__))
stdout = stderr;
#endif

View File

@ -25,7 +25,8 @@
#define HAVE_STRNDUP
#if defined(__FreeBSD__) || (defined(__SRV4) && defined(__sun)) || \
defined(__APPLE__) || defined(__HAIKU__) || defined(__BEOS__)
defined(__APPLE__) || defined(__HAIKU__) || defined(__BEOS__) \
|| defined(__OpenBSD__)
/* FreeBSD and Solaris do not have this function, so
* we implement it ourselves in util.c
*/

View File

@ -82,8 +82,8 @@ void regcomp_wrapper(regex_t *preg, const char *regex, int cflags);
void unicode_transliterate(unsigned int c, char **r);
char *human_friendly_bytesize(unsigned long bytesize);
const char *rfc1123_date(time_t t);
#if !(defined(_GNU_SOURCE) || defined(__NetBSD__)) || defined(riscos) || \
defined(__APPLE__)
#if !(defined(_GNU_SOURCE) || defined(__NetBSD__) || defined(__OpenBSD__)) \
|| defined(riscos) || defined(__APPLE__)
char *strcasestr(const char *haystack, const char *needle);
#endif
unsigned int wallclock(void);