From aa5638bccf02f9bb9210d5b343a7999175566e92 Mon Sep 17 00:00:00 2001 From: Joseph Bongaarts Date: Wed, 14 Mar 2001 05:53:30 +0000 Subject: [PATCH] Author: Ghostwolf Log message: Tweaked the openbsd hack so IOV_MAX would still get defined in limits.h git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@386 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 3 +++ ircd/os_openbsd.c | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 89fefd3..893eb71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2001-03-13 Joseph Bongaarts + * ircd/os_openbsd.c: Tweaked the openbsd hack a bit. + 2001-03-07 Joseph Bongaarts * config/configure.in: Add check for OpenBSD diff --git a/ircd/os_openbsd.c b/ircd/os_openbsd.c index af9fa2a..88a3cd1 100644 --- a/ircd/os_openbsd.c +++ b/ircd/os_openbsd.c @@ -1,6 +1,6 @@ /* * IRC - Internet Relay Chat, ircd/os_openbsd.c - * Copyright (C) 1999 Joseph Bongaarts + * Copyright (C) 2001 Joseph Bongaarts * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,6 +19,16 @@ * $Id$ * */ +#define _XOPEN_SOURCE /* Need this for IOV_MAX */ + +/* These typedef's are needed for socket.h to be happy. Bleep PROMISES to make + * to make this less hackish in the future... HONEST. -GW + */ +typedef unsigned char u_char; +typedef unsigned short u_short; +typedef unsigned int u_int; +typedef unsigned long u_long; + #include "ircd_osdep.h" #include "config.h" #include "msgq.h" -- 2.20.1